src/share/classes/java/beans/IndexedPropertyDescriptor.java
Print this page
@@ -351,11 +351,11 @@
Method indexedWriteMethod)
throws IntrospectionException {
Class<?> indexedPropertyType = null;
if (indexedReadMethod != null) {
- Class params[] = getParameterTypes(getClass0(), indexedReadMethod);
+ Class<?>[] params = getParameterTypes(getClass0(), indexedReadMethod);
if (params.length != 1) {
throw new IntrospectionException("bad indexed read method arg count");
}
if (params[0] != Integer.TYPE) {
throw new IntrospectionException("non int index to indexed read method");
@@ -364,11 +364,11 @@
if (indexedPropertyType == Void.TYPE) {
throw new IntrospectionException("indexed read method returns void");
}
}
if (indexedWriteMethod != null) {
- Class params[] = getParameterTypes(getClass0(), indexedWriteMethod);
+ Class<?>[] params = getParameterTypes(getClass0(), indexedWriteMethod);
if (params.length != 2) {
throw new IntrospectionException("bad indexed write method arg count");
}
if (params[0] != Integer.TYPE) {
throw new IntrospectionException("non int index to indexed write method");