Help AI coding agents write, review, and refactor Java lambdas, method references, functional interfaces, identity functions, suppliers, predicates, consumers, and callbacks with behavior-preserving readability.
99
100%
Does it follow best practices?
Impact
95%
3.06xAverage score across 3 eval scenarios
Passed
No findings from the security scan
When writing or reviewing Java, keep lambdas and functional-interface callbacks as one-expression glue that names a single step of the value flow.
Function.identity() when an API needs an identity Function<T, T> and
UnaryOperator.identity() when the declared type is UnaryOperator<T>, instead of x -> x..map(x -> x) or .map(Function.identity()) when removing them
preserves behavior; do not replace one identity callback with another.orElseGet, computeIfAbsent, requireNonNullElseGet, or the
supplier the API takes, never computed before the absence check.review.md, explain the Java behavior only; do not mention rules,
skills, rubrics, criteria, or internal file names unless the user asks about the workflow.