custom mappable type tests

This commit is contained in:
Keith Donald
2009-10-07 21:33:53 +00:00
parent 8fd3de9397
commit 96cfa0c37d
5 changed files with 189 additions and 2 deletions

View File

@@ -43,6 +43,6 @@ public class MappableTypeFactory {
}
}
throw new IllegalArgumentException("Object of type [" + object.getClass().getName()
+ "] not mappable - no suitable MappableType exists");
+ "] is not mappable - no suitable MappableType exists");
}
}

View File

@@ -208,7 +208,7 @@ public class SpelMapper implements Mapper<Object, Object> {
// internal helpers
private Class[] getRequiredTypeInfo(Mapper mapper) {
private Class<?>[] getRequiredTypeInfo(Mapper<?, ?> mapper) {
return GenericTypeResolver.resolveTypeArguments(mapper.getClass(), Mapper.class);
}