[SPR-8541] Oops! Fixed a minor logic error in DelegatingSmartContextLoader.

This commit is contained in:
Sam Brannen 2011-08-20 17:52:04 +00:00
parent 8ccedd452e
commit 960082dbb0
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ public class DelegatingSmartContextLoader implements SmartContextLoader {
public void processContextConfiguration(final ContextConfigurationAttributes configAttributes) {
Assert.notNull(configAttributes, "configAttributes must not be null");
Assert.isTrue(configAttributes.hasLocations() && configAttributes.hasClasses(), String.format(
Assert.isTrue(!(configAttributes.hasLocations() && configAttributes.hasClasses()), String.format(
"Cannot process locations AND configuration classes for context "
+ "configuration %s; configure one or the other, but not both.", configAttributes));