Remove superfluous not-null check in ContextLoaderUtils

master
Sam Brannen 11 years ago
parent 4542f362eb
commit d126620216
  1. 2
      spring-test/src/main/java/org/springframework/test/context/ContextLoaderUtils.java

@ -502,7 +502,6 @@ abstract class ContextLoaderUtils {
throw new IllegalStateException(msg, e); throw new IllegalStateException(msg, e);
} }
if (resolver != null) {
profiles = resolver.resolve(declaringClass); profiles = resolver.resolve(declaringClass);
if (profiles == null) { if (profiles == null) {
String msg = String.format( String msg = String.format(
@ -512,7 +511,6 @@ abstract class ContextLoaderUtils {
throw new IllegalStateException(msg); throw new IllegalStateException(msg);
} }
} }
}
else if (valueDeclared) { else if (valueDeclared) {
profiles = valueProfiles; profiles = valueProfiles;
} }

Loading…
Cancel
Save