parentheses should be removed from a single lambda input parameter when its type is inferred

This commit is contained in:
igor-suhorukov
2018-03-08 23:51:23 +03:00
committed by Juergen Hoeller
parent 0c45c4c6a3
commit d89f9af22d
2 changed files with 2 additions and 2 deletions

View File

@@ -142,7 +142,7 @@ public class SynchronossPartHttpMessageReader implements HttpMessageReader<Part>
finally {
DataBufferUtils.release(buffer);
}
}, (ex) -> {
}, ex -> {
try {
listener.onError("Request body input error", ex);
parser.close();

View File

@@ -58,7 +58,7 @@ public interface RequestPredicate {
* @return a predicate that represents the logical negation of this predicate
*/
default RequestPredicate negate() {
return (t) -> !test(t);
return t -> !test(t);
}
/**