Polishing
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2020 the original author or authors.
|
||||
* Copyright 2002-2021 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -351,7 +351,9 @@ public class ConstructorArgumentValues {
|
||||
* @return the ValueHolder for the argument, or {@code null} if none set
|
||||
*/
|
||||
@Nullable
|
||||
public ValueHolder getArgumentValue(int index, @Nullable Class<?> requiredType, @Nullable String requiredName, @Nullable Set<ValueHolder> usedValueHolders) {
|
||||
public ValueHolder getArgumentValue(int index, @Nullable Class<?> requiredType,
|
||||
@Nullable String requiredName, @Nullable Set<ValueHolder> usedValueHolders) {
|
||||
|
||||
Assert.isTrue(index >= 0, "Index must not be negative");
|
||||
ValueHolder valueHolder = getIndexedArgumentValue(index, requiredType, requiredName);
|
||||
if (valueHolder == null) {
|
||||
|
||||
@@ -1085,7 +1085,7 @@ public abstract class FrameworkServlet extends HttpServletBean implements Applic
|
||||
}
|
||||
|
||||
DispatcherType dispatchType = request.getDispatcherType();
|
||||
boolean initialDispatch = DispatcherType.REQUEST == dispatchType;
|
||||
boolean initialDispatch = (dispatchType == DispatcherType.REQUEST);
|
||||
|
||||
if (failureCause != null) {
|
||||
if (!initialDispatch) {
|
||||
@@ -1109,7 +1109,7 @@ public abstract class FrameworkServlet extends HttpServletBean implements Applic
|
||||
}
|
||||
|
||||
int status = response.getStatus();
|
||||
String headers = ""; // nothing below trace
|
||||
String headers = ""; // nothing below trace
|
||||
|
||||
if (logger.isTraceEnabled()) {
|
||||
Collection<String> names = response.getHeaderNames();
|
||||
|
||||
Reference in New Issue
Block a user