Changed access to use this qualifier

This commit is contained in:
yueh
2014-12-29 15:13:47 +01:00
parent 2a5e57a59b
commit f471513bd0
604 changed files with 11573 additions and 11573 deletions
@@ -46,14 +46,14 @@ public class ClassInstantiation<T>
for ( Constructor<T> constructor : constructors )
{
Class<?>[] paramTypes = constructor.getParameterTypes();
if ( paramTypes.length == args.length )
if ( paramTypes.length == this.args.length )
{
boolean valid = true;
for ( int idx = 0; idx < paramTypes.length; idx++ )
{
Class<?> cz = args[idx].getClass();
if ( !isClassMatch( paramTypes[idx], cz, args[idx] ) )
Class<?> cz = this.args[idx].getClass();
if ( !this.isClassMatch( paramTypes[idx], cz, this.args[idx] ) )
valid = false;
}
@@ -61,7 +61,7 @@ public class ClassInstantiation<T>
{
try
{
return Optional.of( constructor.newInstance( args ) );
return Optional.of( constructor.newInstance( this.args ) );
}
catch ( InstantiationException e )
{
@@ -88,8 +88,8 @@ public class ClassInstantiation<T>
if ( value == null && !expected.isPrimitive() )
return true;
expected = condense( expected, Boolean.class, Character.class, Byte.class, Short.class, Integer.class, Long.class, Float.class, Double.class );
got = condense( got, Boolean.class, Character.class, Byte.class, Short.class, Integer.class, Long.class, Float.class, Double.class );
expected = this.condense( expected, Boolean.class, Character.class, Byte.class, Short.class, Integer.class, Long.class, Float.class, Double.class );
got = this.condense( got, Boolean.class, Character.class, Byte.class, Short.class, Integer.class, Long.class, Float.class, Double.class );
return expected == got || expected.isAssignableFrom( got );
}