Skip to content

Commit 4799aa5

Browse files
authored
Merge 488a450 into 26bc606
2 parents 26bc606 + 488a450 commit 4799aa5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/apache/ibatis/reflection/Reflector.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ public Reflector(Class<?> clazz) {
7676
addSetMethods(classMethods);
7777
addFields(clazz);
7878
}
79-
readablePropertyNames = getMethods.keySet().toArray(new String[0]);
80-
writablePropertyNames = setMethods.keySet().toArray(new String[0]);
79+
readablePropertyNames = getMethods.keySet().toArray(new String[getMethods.size()]);
80+
writablePropertyNames = setMethods.keySet().toArray(new String[setMethods.size()]);
8181
for (String propName : readablePropertyNames) {
8282
caseInsensitivePropertyMap.put(propName.toUpperCase(Locale.ENGLISH), propName);
8383
}

0 commit comments

Comments
 (0)