Remove superfluous not-null check in ContextLoaderUtils

This commit is contained in:
Sam Brannen 2013-06-16 00:38:56 +02:00
parent 4542f362eb
commit d126620216
1 changed files with 7 additions and 9 deletions

View File

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