mirror of
https://github.com/querydsl/querydsl.git
synced 2026-06-30 21:08:30 +08:00
Remove unused argument
This commit is contained in:
parent
cfa11f5095
commit
4ed096c439
@ -17,9 +17,6 @@ import java.util.concurrent.ExecutionException;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
import net.sf.cglib.proxy.Enhancer;
|
||||
import net.sf.cglib.proxy.MethodInterceptor;
|
||||
|
||||
import com.google.common.cache.CacheBuilder;
|
||||
import com.google.common.cache.CacheLoader;
|
||||
import com.google.common.cache.LoadingCache;
|
||||
@ -29,6 +26,9 @@ import com.querydsl.core.types.EntityPath;
|
||||
import com.querydsl.core.types.Expression;
|
||||
import com.querydsl.core.types.PathMetadataFactory;
|
||||
|
||||
import net.sf.cglib.proxy.Enhancer;
|
||||
import net.sf.cglib.proxy.MethodInterceptor;
|
||||
|
||||
/**
|
||||
* AliasFactory is a factory class for alias creation
|
||||
*
|
||||
@ -90,11 +90,10 @@ public class AliasFactory {
|
||||
*
|
||||
* @param <A>
|
||||
* @param cl
|
||||
* @param parent
|
||||
* @param path
|
||||
* @return
|
||||
*/
|
||||
public <A> A createAliasForProperty(Class<A> cl, Object parent, Expression<?> path) {
|
||||
public <A> A createAliasForProperty(Class<A> cl, Expression<?> path) {
|
||||
return createProxy(cl, path);
|
||||
}
|
||||
|
||||
|
||||
@ -210,22 +210,22 @@ public class PropertyAccessInvocationHandler implements MethodInterceptor {
|
||||
Class<Object> keyType = (Class)ReflectionUtils.getTypeParameter(genericType, 0);
|
||||
Class<Object> valueType = (Class)ReflectionUtils.getTypeParameter(genericType, 1);
|
||||
path = pathFactory.createMapPath(keyType, valueType, metadata);
|
||||
rv = aliasFactory.createAliasForProperty(type, parent, path);
|
||||
rv = aliasFactory.createAliasForProperty(type, path);
|
||||
|
||||
} else if (typeSystem.isListType(type)) {
|
||||
Class<Object> elementType = (Class)ReflectionUtils.getTypeParameter(genericType, 0);
|
||||
path = pathFactory.createListPath(elementType, metadata);
|
||||
rv = aliasFactory.createAliasForProperty(type, parent, path);
|
||||
rv = aliasFactory.createAliasForProperty(type, path);
|
||||
|
||||
} else if (typeSystem.isSetType(type)) {
|
||||
Class<?> elementType = ReflectionUtils.getTypeParameterAsClass(genericType, 0);
|
||||
path = pathFactory.createSetPath(elementType, metadata);
|
||||
rv = aliasFactory.createAliasForProperty(type, parent, path);
|
||||
rv = aliasFactory.createAliasForProperty(type, path);
|
||||
|
||||
} else if (typeSystem.isCollectionType(type)) {
|
||||
Class<?> elementType = ReflectionUtils.getTypeParameterAsClass(genericType, 0);
|
||||
path = pathFactory.createCollectionPath(elementType, metadata);
|
||||
rv = aliasFactory.createAliasForProperty(type, parent, path);
|
||||
rv = aliasFactory.createAliasForProperty(type, path);
|
||||
|
||||
} else if (Enum.class.isAssignableFrom(type)) {
|
||||
path = pathFactory.createEnumPath((Class)type, metadata);
|
||||
@ -244,7 +244,7 @@ public class PropertyAccessInvocationHandler implements MethodInterceptor {
|
||||
path = pathFactory.createEntityPath(type, metadata);
|
||||
}
|
||||
if (!Modifier.isFinal(type.getModifiers())) {
|
||||
rv = aliasFactory.createAliasForProperty(type, parent, path);
|
||||
rv = aliasFactory.createAliasForProperty(type, path);
|
||||
} else {
|
||||
rv = null;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user