Browse Source

Delete explicit type arguments that can be inferred

Closes gh-26044
pull/26050/head
NaNRailgun 4 years ago committed by GitHub
parent
commit
11aa901634
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      spring-webmvc/src/main/java/org/springframework/web/servlet/config/annotation/ViewResolverRegistry.java
  2. 2
      spring-webmvc/src/main/java/org/springframework/web/servlet/view/RedirectView.java

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

@ -284,7 +284,7 @@ public class ViewResolverRegistry { @@ -284,7 +284,7 @@ public class ViewResolverRegistry {
protected List<ViewResolver> getViewResolvers() {
if (this.contentNegotiatingResolver != null) {
return Collections.<ViewResolver>singletonList(this.contentNegotiatingResolver);
return Collections.singletonList(this.contentNegotiatingResolver);
}
else {
return this.viewResolvers;

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

@ -398,7 +398,7 @@ public class RedirectView extends AbstractUrlBasedView implements SmartView { @@ -398,7 +398,7 @@ public class RedirectView extends AbstractUrlBasedView implements SmartView {
private Map<String, String> getCurrentRequestUriVariables(HttpServletRequest request) {
String name = HandlerMapping.URI_TEMPLATE_VARIABLES_ATTRIBUTE;
Map<String, String> uriVars = (Map<String, String>) request.getAttribute(name);
return (uriVars != null) ? uriVars : Collections.<String, String> emptyMap();
return (uriVars != null) ? uriVars : Collections.emptyMap();
}
/**

Loading…
Cancel
Save