Polish: Array designators "[]" should be on the type, not the variable

(cherry picked from commit c782075)
This commit is contained in:
igor-suhorukov
2018-02-25 09:11:42 +01:00
committed by Juergen Hoeller
parent 295df21f06
commit d5f358c33c
16 changed files with 24 additions and 24 deletions

View File

@@ -75,7 +75,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);
}
@@ -109,7 +109,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);
}
@@ -123,7 +123,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);
}

View File

@@ -156,7 +156,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;

View File

@@ -855,11 +855,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;