add some wildcards
This commit is contained in:
parent
25cb085f48
commit
412319819e
|
@ -7,7 +7,6 @@
|
|||
package org.hibernate.dialect.temptable;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
|
|
@ -31,10 +31,10 @@ public class PropertyAccessEmbeddedImpl implements PropertyAccess {
|
|||
private final PropertyAccessStrategyEmbeddedImpl strategy;
|
||||
private final GetterImpl getter;
|
||||
|
||||
@SuppressWarnings("UnusedParameters")
|
||||
public PropertyAccessEmbeddedImpl(
|
||||
PropertyAccessStrategyEmbeddedImpl strategy,
|
||||
Class containerType,
|
||||
Class<?> containerType,
|
||||
@SuppressWarnings("UnusedParameters")
|
||||
String propertyName) {
|
||||
this.strategy = strategy;
|
||||
this.getter = new GetterImpl( containerType );
|
||||
|
@ -56,9 +56,9 @@ public class PropertyAccessEmbeddedImpl implements PropertyAccess {
|
|||
}
|
||||
|
||||
private static class GetterImpl implements Getter {
|
||||
private final Class containerType;
|
||||
private final Class<?> containerType;
|
||||
|
||||
public GetterImpl(Class containerType) {
|
||||
public GetterImpl(Class<?> containerType) {
|
||||
this.containerType = containerType;
|
||||
}
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ public class PropertyAccessEnhancedImpl extends PropertyAccessMixedImpl {
|
|||
|
||||
public PropertyAccessEnhancedImpl(
|
||||
PropertyAccessStrategy strategy,
|
||||
Class containerJavaType,
|
||||
Class<?> containerJavaType,
|
||||
String propertyName) {
|
||||
super( strategy, containerJavaType, propertyName );
|
||||
}
|
||||
|
|
|
@ -27,7 +27,7 @@ public class PropertyAccessFieldImpl implements PropertyAccess {
|
|||
|
||||
public PropertyAccessFieldImpl(
|
||||
PropertyAccessStrategyFieldImpl strategy,
|
||||
Class containerJavaType,
|
||||
Class<?> containerJavaType,
|
||||
final String propertyName) {
|
||||
this.strategy = strategy;
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ public class PropertyAccessMixedImpl implements PropertyAccess {
|
|||
|
||||
public PropertyAccessMixedImpl(
|
||||
PropertyAccessStrategy strategy,
|
||||
Class containerJavaType,
|
||||
Class<?> containerJavaType,
|
||||
String propertyName) {
|
||||
this.strategy = strategy;
|
||||
|
||||
|
@ -79,7 +79,7 @@ public class PropertyAccessMixedImpl implements PropertyAccess {
|
|||
}
|
||||
}
|
||||
|
||||
protected static Field fieldOrNull(Class containerJavaType, String propertyName) {
|
||||
protected static Field fieldOrNull(Class<?> containerJavaType, String propertyName) {
|
||||
try {
|
||||
return ReflectHelper.findField( containerJavaType, propertyName );
|
||||
}
|
||||
|
|
|
@ -47,7 +47,7 @@ public class PropertyAccessStrategyBackRefImpl implements PropertyAccessStrategy
|
|||
}
|
||||
|
||||
@Override
|
||||
public PropertyAccess buildPropertyAccess(Class containerJavaType, String propertyName, boolean setterRequired) {
|
||||
public PropertyAccess buildPropertyAccess(Class<?> containerJavaType, String propertyName, boolean setterRequired) {
|
||||
return new PropertyAccessBackRefImpl( this );
|
||||
}
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ public class PropertyAccessStrategyChainedImpl implements PropertyAccessStrategy
|
|||
}
|
||||
|
||||
@Override
|
||||
public PropertyAccess buildPropertyAccess(Class containerJavaType, String propertyName, boolean setterRequired) {
|
||||
public PropertyAccess buildPropertyAccess(Class<?> containerJavaType, String propertyName, boolean setterRequired) {
|
||||
for ( PropertyAccessStrategy candidate : chain ) {
|
||||
try {
|
||||
return candidate.buildPropertyAccess( containerJavaType, propertyName, true );
|
||||
|
|
|
@ -10,7 +10,7 @@ import org.hibernate.property.access.spi.PropertyAccess;
|
|||
import org.hibernate.property.access.spi.PropertyAccessStrategy;
|
||||
|
||||
/**
|
||||
* A PropertyAccessStrategy that deals with non-aggregated composites.
|
||||
* A {@link PropertyAccessStrategy} that deals with non-aggregated composites.
|
||||
*
|
||||
* @author Gavin King
|
||||
* @author Steve Ebersole
|
||||
|
@ -22,7 +22,7 @@ public class PropertyAccessStrategyEmbeddedImpl implements PropertyAccessStrateg
|
|||
public static final PropertyAccessStrategyEmbeddedImpl INSTANCE = new PropertyAccessStrategyEmbeddedImpl();
|
||||
|
||||
@Override
|
||||
public PropertyAccess buildPropertyAccess(Class containerJavaType, String propertyName, boolean setterRequired) {
|
||||
public PropertyAccess buildPropertyAccess(Class<?> containerJavaType, String propertyName, boolean setterRequired) {
|
||||
return new PropertyAccessEmbeddedImpl( this, containerJavaType, propertyName );
|
||||
}
|
||||
}
|
||||
|
|
|
@ -23,7 +23,7 @@ public class PropertyAccessStrategyEnhancedImpl implements PropertyAccessStrateg
|
|||
public static final PropertyAccessStrategyEnhancedImpl INSTANCE = new PropertyAccessStrategyEnhancedImpl();
|
||||
|
||||
@Override
|
||||
public PropertyAccess buildPropertyAccess(Class containerJavaType, final String propertyName, boolean setterRequired) {
|
||||
public PropertyAccess buildPropertyAccess(Class<?> containerJavaType, final String propertyName, boolean setterRequired) {
|
||||
return new PropertyAccessEnhancedImpl( this, containerJavaType, propertyName );
|
||||
}
|
||||
}
|
||||
|
|
|
@ -22,7 +22,7 @@ public class PropertyAccessStrategyFieldImpl implements PropertyAccessStrategy {
|
|||
public static final PropertyAccessStrategyFieldImpl INSTANCE = new PropertyAccessStrategyFieldImpl();
|
||||
|
||||
@Override
|
||||
public PropertyAccess buildPropertyAccess(Class containerJavaType, String propertyName, boolean setterRequired) {
|
||||
public PropertyAccess buildPropertyAccess(Class<?> containerJavaType, String propertyName, boolean setterRequired) {
|
||||
return new PropertyAccessFieldImpl( this, containerJavaType, propertyName );
|
||||
}
|
||||
}
|
||||
|
|
|
@ -31,7 +31,7 @@ public class PropertyAccessStrategyIndexBackRefImpl implements PropertyAccessStr
|
|||
}
|
||||
|
||||
@Override
|
||||
public PropertyAccess buildPropertyAccess(Class containerJavaType, String propertyName, boolean setterRequired) {
|
||||
public PropertyAccess buildPropertyAccess(Class<?> containerJavaType, String propertyName, boolean setterRequired) {
|
||||
return new PropertyAccessIndexBackRefImpl( this );
|
||||
}
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ public class PropertyAccessStrategyMapImpl implements PropertyAccessStrategy {
|
|||
public static final PropertyAccessStrategyMapImpl INSTANCE = new PropertyAccessStrategyMapImpl();
|
||||
|
||||
@Override
|
||||
public PropertyAccess buildPropertyAccess(Class containerJavaType, String propertyName, boolean setterRequired) {
|
||||
public PropertyAccess buildPropertyAccess(Class<?> containerJavaType, String propertyName, boolean setterRequired) {
|
||||
|
||||
// Sometimes containerJavaType is null, but if it isn't, make sure it's a Map.
|
||||
if (containerJavaType != null && !Map.class.isAssignableFrom( containerJavaType)) {
|
||||
|
|
|
@ -21,7 +21,7 @@ public class PropertyAccessStrategyMixedImpl implements PropertyAccessStrategy {
|
|||
public static final PropertyAccessStrategyMixedImpl INSTANCE = new PropertyAccessStrategyMixedImpl();
|
||||
|
||||
@Override
|
||||
public PropertyAccess buildPropertyAccess(Class containerJavaType, String propertyName, boolean setterRequired) {
|
||||
public PropertyAccess buildPropertyAccess(Class<?> containerJavaType, String propertyName, boolean setterRequired) {
|
||||
return new PropertyAccessMixedImpl( this, containerJavaType, propertyName );
|
||||
}
|
||||
}
|
||||
|
|
|
@ -31,7 +31,7 @@ public class PropertyAccessStrategyNoopImpl implements PropertyAccessStrategy {
|
|||
public static final PropertyAccessStrategyNoopImpl INSTANCE = new PropertyAccessStrategyNoopImpl();
|
||||
|
||||
@Override
|
||||
public PropertyAccess buildPropertyAccess(Class containerJavaType, String propertyName, boolean setterRequired) {
|
||||
public PropertyAccess buildPropertyAccess(Class<?> containerJavaType, String propertyName, boolean setterRequired) {
|
||||
return PropertyAccessNoopImpl.INSTANCE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue