Make compatible with Assert static class in Spring 1.2.9.

This commit is contained in:
Ben Alex 2007-05-25 05:32:32 +00:00
parent 5b97b3458c
commit e252f4a497
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ public abstract class OrderedUtils {
Assert.notNull(sourceClass, "Source class required");
Assert.notNull(applicationContext, "ApplicationContext required");
Assert.notNull(destinationObject, "Destination object required");
Assert.isAssignable(Ordered.class, sourceClass, "Source class " + sourceClass + " must be assignable to Ordered");
Assert.isTrue(Ordered.class.isAssignableFrom(sourceClass), "Source class " + sourceClass + " must be assignable to Ordered");
Map map = applicationContext.getBeansOfType(sourceClass);
if (map.size() == 0) {
return false;