Delete explicit type arguments that can be inferred
Closes gh-26044
This commit is contained in:
parent
6e51370490
commit
11aa901634
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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…
Reference in New Issue