Polish
This commit is contained in:
@@ -95,7 +95,7 @@ public class ControllerEndpointHandlerMapping extends RequestMappingHandlerMappi
|
||||
ExposableControllerEndpoint endpoint, RequestMappingInfo mapping) {
|
||||
Set<PathPattern> patterns = mapping.getPatternsCondition().getPatterns();
|
||||
if (patterns.isEmpty()) {
|
||||
patterns = new HashSet<PathPattern>(
|
||||
patterns = new HashSet<>(
|
||||
Arrays.asList(getPathPatternParser().parse("")));
|
||||
}
|
||||
PathPattern[] endpointMappedPatterns = patterns.stream()
|
||||
|
||||
@@ -77,7 +77,7 @@ final class TraceableHttpServletRequest implements TraceableRequest {
|
||||
}
|
||||
|
||||
private List<String> toList(Enumeration<String> enumeration) {
|
||||
List<String> list = new ArrayList<String>();
|
||||
List<String> list = new ArrayList<>();
|
||||
while (enumeration.hasMoreElements()) {
|
||||
list.add(enumeration.nextElement());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user