1
0
mirror of synced 2026-05-22 21:33:16 +00:00

Anonymous type can be replaced with lambda

This commit is contained in:
Lars Grefer
2019-08-06 23:40:48 +02:00
committed by Josh Cummings
parent 05f42a4995
commit fb39d9c255
53 changed files with 347 additions and 722 deletions
@@ -36,12 +36,10 @@ import java.util.Map;
* @author Rob Winch
*/
public final class SimpDestinationMessageMatcher implements MessageMatcher<Object> {
public static final MessageMatcher<Object> NULL_DESTINATION_MATCHER = new MessageMatcher<Object>() {
public boolean matches(Message<? extends Object> message) {
String destination = SimpMessageHeaderAccessor.getDestination(message
.getHeaders());
return destination == null;
}
public static final MessageMatcher<Object> NULL_DESTINATION_MATCHER = message -> {
String destination = SimpMessageHeaderAccessor.getDestination(message
.getHeaders());
return destination == null;
};
private final PathMatcher matcher;