Skip to content

Commit b31efd3

Browse files
committed
Optimize bean property lookup.
1 parent ae46a0b commit b31efd3

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

httprpc/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ plugins {
1919
}
2020

2121
group = 'org.httprpc'
22-
version = '6.6'
22+
version = '6.6.1'
2323

2424
repositories {
2525
mavenCentral()

httprpc/src/main/java/org/httprpc/beans/BeanAdapter.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,8 @@ private BeanAdapter(Object bean, HashMap<Class<?>, HashMap<String, Method>> acce
191191
String key = getKey(method);
192192

193193
if (key != null) {
194+
method.setAccessible(true);
195+
194196
accessors.put(key, method);
195197
}
196198
}

0 commit comments

Comments
 (0)