From a36c2a6492b6337de3fcc8919c2b59ae3b372f7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20Westk=C3=A4mper?= Date: Tue, 6 Jan 2009 19:01:16 +0000 Subject: [PATCH] --- .../alias/PropertyAccessInvocationHandler.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/querydsl-collections/src/main/java/com/mysema/query/collections/alias/PropertyAccessInvocationHandler.java b/querydsl-collections/src/main/java/com/mysema/query/collections/alias/PropertyAccessInvocationHandler.java index 6f09f0198..faf8c5f50 100644 --- a/querydsl-collections/src/main/java/com/mysema/query/collections/alias/PropertyAccessInvocationHandler.java +++ b/querydsl-collections/src/main/java/com/mysema/query/collections/alias/PropertyAccessInvocationHandler.java @@ -160,7 +160,7 @@ class PropertyAccessInvocationHandler implements MethodInterceptor{ } else if (Integer.class.equals(type) || int.class.equals(type)) { path = new Path.PComparable(Integer.class,pm); - rv = (T) new Integer(42); + rv = (T) Integer.valueOf(42); } else if (Date.class.equals(type)) { path = new Path.PComparable(Date.class,pm); @@ -168,31 +168,31 @@ class PropertyAccessInvocationHandler implements MethodInterceptor{ } else if (Long.class.equals(type) || long.class.equals(type)) { path = new Path.PComparable(Long.class,pm); - rv = (T) new Long(42); + rv = (T) Long.valueOf(42l); } else if (Short.class.equals(type) || short.class.equals(type)) { path = new Path.PComparable(Short.class,pm); - rv = (T) new Short((short) 42); + rv = (T) Short.valueOf((short)42); } else if (Double.class.equals(type) || double.class.equals(type)) { path = new Path.PComparable(Double.class,pm); - rv = (T) new Double(42); + rv = (T) Double.valueOf(42d); } else if (Float.class.equals(type) || float.class.equals(type)) { path = new Path.PComparable(Float.class,pm); - rv = (T) new Float(42); + rv = (T) Float.valueOf(42f); } else if (BigInteger.class.equals(type)) { path = new Path.PComparable(BigInteger.class,pm); - rv = (T) new BigInteger("42"); + rv = (T) BigInteger.valueOf(42l); } else if (BigDecimal.class.equals(type)) { path = new Path.PComparable(BigDecimal.class,pm); - rv = (T) new BigDecimal(42); + rv = (T) BigDecimal.valueOf(42d); } else if (Boolean.class.equals(type) || boolean.class.equals(type)) { path = new Path.PBoolean(pm); - rv = (T) new Boolean(true); + rv = (T) Boolean.TRUE; // Collection API types