This commit is contained in:
Timo Westkämper 2009-08-17 10:53:07 +00:00
parent d84abe576c
commit f2e64f5dfd
2 changed files with 15 additions and 4 deletions

View File

@ -272,8 +272,6 @@ class PropertyAccessInvocationHandler implements MethodInterceptor {
path = new PBoolean(pm);
rv = (T) Boolean.TRUE;
// Collection API types
} else if (List.class.isAssignableFrom(type)) {
Class<?> elementType = getTypeParameter(genericType, 0);
path = new PEntityList(elementType, elementType.getSimpleName(), pm);
@ -295,8 +293,6 @@ class PropertyAccessInvocationHandler implements MethodInterceptor {
path = new PEntityMap(keyType, valueType, valueType.getSimpleName(), pm);
rv = (T) aliasFactory.createAliasForProp(type, parent, path);
// enums
} else if (Enum.class.isAssignableFrom(type)) {
path = new PSimple<T>(type, pm);
rv = type.getEnumConstants()[0];

View File

@ -22,26 +22,41 @@ public final class MathFunctions {
private MathFunctions() {
}
/**
* use left.abs() instead
*/
@Deprecated
public static <A extends Number & Comparable<?>> ENumber<A> abs(ENumber<A> left) {
return left.abs();
}
/**
* use left.sqrt() instead
*/
@Deprecated
public static <A extends Number & Comparable<?>> ENumber<Double> sqrt(ENumber<A> left) {
return left.sqrt();
}
/**
* use ENumber.random() instead
*/
@Deprecated
public static ENumber<Double> random() {
return ENumber.random();
}
/**
* use ENumber.max(left, right) instead
*/
@Deprecated
public static <A extends Number & Comparable<?>> ENumber<A> max(Expr<A> left, Expr<A> right) {
return ENumber.max(left, right);
}
/**
* use ENumber.min(left, right) instead
*/
@Deprecated
public static <A extends Number & Comparable<?>> ENumber<A> min(Expr<A> left, Expr<A> right) {
return ENumber.min(left, right);