Skip to content

Commit 11aa901

Browse files
authored
Delete explicit type arguments that can be inferred
Closes gh-26044
1 parent 6e51370 commit 11aa901

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

spring-webmvc/src/main/java/org/springframework/web/servlet/config/annotation/ViewResolverRegistry.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ protected int getOrder() {
284284

285285
protected List<ViewResolver> getViewResolvers() {
286286
if (this.contentNegotiatingResolver != null) {
287-
return Collections.<ViewResolver>singletonList(this.contentNegotiatingResolver);
287+
return Collections.singletonList(this.contentNegotiatingResolver);
288288
}
289289
else {
290290
return this.viewResolvers;

spring-webmvc/src/main/java/org/springframework/web/servlet/view/RedirectView.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ protected StringBuilder replaceUriTemplateVariables(
398398
private Map<String, String> getCurrentRequestUriVariables(HttpServletRequest request) {
399399
String name = HandlerMapping.URI_TEMPLATE_VARIABLES_ATTRIBUTE;
400400
Map<String, String> uriVars = (Map<String, String>) request.getAttribute(name);
401-
return (uriVars != null) ? uriVars : Collections.<String, String> emptyMap();
401+
return (uriVars != null) ? uriVars : Collections.emptyMap();
402402
}
403403

404404
/**

0 commit comments

Comments
 (0)