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

This commit is contained in:
igor-suhorukov
2018-02-25 11:11:42 +03:00
committed by Juergen Hoeller
parent 7f58d9ede0
commit c782075a13
16 changed files with 23 additions and 23 deletions

View File

@@ -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);
}

View File

@@ -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;

View File

@@ -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;