Skip to main content
5 votes

Convenience inheritance

IMHO implementation inheritance is not an anti-pattern in general. There are too many examples where this works well enough to ban this kind of inheritance dogmatically. You presented a few examples ...
Doc Brown's user avatar
  • 220k
2 votes

Approach for querying an arbitrary set of user submitted fields and values in Spring application? Like a shopping site sidebar search?

If your filters are simple (like equality per field) then check out query by example in Spring Data JPA. If you need complex filters (like comparisons between fields, checking for existence, range ...
Sankozi's user avatar
  • 189
1 vote
Accepted

What SOLID principles does the Java List interface challenge?

It does not violate the Liskov Substitution Principle. The LSP states that a subtype should not violate guarantees given by a supertype. But the List interface explicitly states that the methods add(),...
JacquesB's user avatar
  • 62.3k

Only top scored, non community-wiki answers of a minimum length are eligible