79650782

Date: 2025-06-03 07:24:13
Score: 2
Natty:
Report link

Finally looked inside current version of Specification.where() method and rewrite

final var spec = Specification.where(null);

to

Specification<MyClass> spec = (root, query, builder) -> null;

and it works as expected without deprecated warning. Thank you all for your help!

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Max