Polish: Array designators "[]" should be on the type, not the variable
This commit is contained in:
committed by
Juergen Hoeller
parent
7f58d9ede0
commit
c782075a13
@@ -79,7 +79,7 @@ class PropertyDescriptorUtils {
|
||||
}
|
||||
|
||||
if (writeMethod != null) {
|
||||
Class<?> params[] = writeMethod.getParameterTypes();
|
||||
Class<?>[] params = writeMethod.getParameterTypes();
|
||||
if (params.length != 1) {
|
||||
throw new IntrospectionException("Bad write method arg count: " + writeMethod);
|
||||
}
|
||||
@@ -114,7 +114,7 @@ class PropertyDescriptorUtils {
|
||||
Class<?> indexedPropertyType = null;
|
||||
|
||||
if (indexedReadMethod != null) {
|
||||
Class<?> params[] = indexedReadMethod.getParameterTypes();
|
||||
Class<?>[] params = indexedReadMethod.getParameterTypes();
|
||||
if (params.length != 1) {
|
||||
throw new IntrospectionException("Bad indexed read method arg count: " + indexedReadMethod);
|
||||
}
|
||||
@@ -128,7 +128,7 @@ class PropertyDescriptorUtils {
|
||||
}
|
||||
|
||||
if (indexedWriteMethod != null) {
|
||||
Class<?> params[] = indexedWriteMethod.getParameterTypes();
|
||||
Class<?>[] params = indexedWriteMethod.getParameterTypes();
|
||||
if (params.length != 2) {
|
||||
throw new IntrospectionException("Bad indexed write method arg count: " + indexedWriteMethod);
|
||||
}
|
||||
|
||||
@@ -155,7 +155,7 @@ public abstract class PropertyMatches {
|
||||
if (s2.isEmpty()) {
|
||||
return s1.length();
|
||||
}
|
||||
int d[][] = new int[s1.length() + 1][s2.length() + 1];
|
||||
int[][] d = new int[s1.length() + 1][s2.length() + 1];
|
||||
|
||||
for (int i = 0; i <= s1.length(); i++) {
|
||||
d[i][0] = i;
|
||||
|
||||
@@ -833,11 +833,11 @@ class ConstructorResolver {
|
||||
*/
|
||||
private static class ArgumentsHolder {
|
||||
|
||||
public final Object rawArguments[];
|
||||
public final Object[] rawArguments;
|
||||
|
||||
public final Object arguments[];
|
||||
public final Object[] arguments;
|
||||
|
||||
public final Object preparedArguments[];
|
||||
public final Object[] preparedArguments;
|
||||
|
||||
public boolean resolveNecessary = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user