|
|
|
@ -79,7 +79,7 @@ class PropertyDescriptorUtils { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (writeMethod != null) { |
|
|
|
if (writeMethod != null) { |
|
|
|
Class<?> params[] = writeMethod.getParameterTypes(); |
|
|
|
Class<?>[] params = writeMethod.getParameterTypes(); |
|
|
|
if (params.length != 1) { |
|
|
|
if (params.length != 1) { |
|
|
|
throw new IntrospectionException("Bad write method arg count: " + writeMethod); |
|
|
|
throw new IntrospectionException("Bad write method arg count: " + writeMethod); |
|
|
|
} |
|
|
|
} |
|
|
|
@ -114,7 +114,7 @@ class PropertyDescriptorUtils { |
|
|
|
Class<?> indexedPropertyType = null; |
|
|
|
Class<?> indexedPropertyType = null; |
|
|
|
|
|
|
|
|
|
|
|
if (indexedReadMethod != null) { |
|
|
|
if (indexedReadMethod != null) { |
|
|
|
Class<?> params[] = indexedReadMethod.getParameterTypes(); |
|
|
|
Class<?>[] params = indexedReadMethod.getParameterTypes(); |
|
|
|
if (params.length != 1) { |
|
|
|
if (params.length != 1) { |
|
|
|
throw new IntrospectionException("Bad indexed read method arg count: " + indexedReadMethod); |
|
|
|
throw new IntrospectionException("Bad indexed read method arg count: " + indexedReadMethod); |
|
|
|
} |
|
|
|
} |
|
|
|
@ -128,7 +128,7 @@ class PropertyDescriptorUtils { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (indexedWriteMethod != null) { |
|
|
|
if (indexedWriteMethod != null) { |
|
|
|
Class<?> params[] = indexedWriteMethod.getParameterTypes(); |
|
|
|
Class<?>[] params = indexedWriteMethod.getParameterTypes(); |
|
|
|
if (params.length != 2) { |
|
|
|
if (params.length != 2) { |
|
|
|
throw new IntrospectionException("Bad indexed write method arg count: " + indexedWriteMethod); |
|
|
|
throw new IntrospectionException("Bad indexed write method arg count: " + indexedWriteMethod); |
|
|
|
} |
|
|
|
} |
|
|
|
|