DATACMNS-89 - Returned type now does not consider Number types DTO types.

This commit is contained in:
Oliver Gierke
2016-01-08 15:59:33 +01:00
parent d03ca30381
commit 80e44a3fc0
2 changed files with 17 additions and 0 deletions

View File

@@ -296,6 +296,7 @@ public abstract class ReturnedType {
return !Object.class.equals(type) && //
!isDomainSubtype() && //
!isPrimitiveOrWrapper() && //
!Number.class.isAssignableFrom(type) && //
!VOID_TYPES.contains(type) && //
!type.getPackage().getName().startsWith("java.lang");
}