@ -296,9 +296,7 @@ public class ContentNegotiatingViewResolver extends WebApplicationObjectSupport
@@ -296,9 +296,7 @@ public class ContentNegotiatingViewResolver extends WebApplicationObjectSupport
@ -361,7 +359,9 @@ public class ContentNegotiatingViewResolver extends WebApplicationObjectSupport
@@ -361,7 +359,9 @@ public class ContentNegotiatingViewResolver extends WebApplicationObjectSupport
returnmediaTypes;
}
catch(IllegalArgumentExceptionex){
logger.debug("Could not parse accept header ["+acceptHeader+"]: "+ex.getMessage());
if(logger.isDebugEnabled()){
logger.debug("Could not parse accept header ["+acceptHeader+"]: "+ex.getMessage());
@ -285,9 +283,11 @@ public class RedirectView extends AbstractUrlBasedView {
@@ -285,9 +283,11 @@ public class RedirectView extends AbstractUrlBasedView {
try{
Stringencoded=UriUtils.encodeUri(uri,encoding);
returnnewURI(encoded);
}catch(UnsupportedEncodingExceptionex){
}
catch(UnsupportedEncodingExceptionex){
thrownewIllegalStateException(ex);
}catch(URISyntaxExceptionex){
}
catch(URISyntaxExceptionex){
thrownewIllegalArgumentException("Could not create URI from ["+uri+"]: "+ex,ex);
}
}
@ -476,7 +476,7 @@ public class RedirectView extends AbstractUrlBasedView {
@@ -476,7 +476,7 @@ public class RedirectView extends AbstractUrlBasedView {