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

Polish diamond operator usage

This commit is contained in:
Tran Ngoc Nhan
2024-10-11 21:44:08 +07:00
committed by Josh Cummings
parent f3e95c8175
commit 31f8caec5f
24 changed files with 42 additions and 44 deletions
@@ -1,5 +1,5 @@
/*
* Copyright 2019 the original author or authors.
* Copyright 2019-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -81,8 +81,7 @@ public interface PayloadExchangeMatcher {
* @return
*/
public static Mono<MatchResult> match(Map<String, ? extends Object> variables) {
MatchResult result = new MatchResult(true,
(variables != null) ? new HashMap<String, Object>(variables) : null);
MatchResult result = new MatchResult(true, (variables != null) ? new HashMap<>(variables) : null);
return Mono.just(result);
}