15
15
*/
16
16
package org .apache .ibatis .reflection ;
17
17
18
- import org .apache .ibatis .reflection .invoker .AmbiguousMethodInvoker ;
19
- import org .apache .ibatis .reflection .invoker .GetFieldInvoker ;
20
- import org .apache .ibatis .reflection .invoker .Invoker ;
21
- import org .apache .ibatis .reflection .invoker .MethodInvoker ;
22
- import org .apache .ibatis .reflection .invoker .SetFieldInvoker ;
23
- import org .apache .ibatis .reflection .property .PropertyNamer ;
24
- import org .apache .ibatis .util .MapUtil ;
25
-
26
18
import java .lang .reflect .Array ;
27
19
import java .lang .reflect .Constructor ;
28
20
import java .lang .reflect .Field ;
42
34
import java .util .Map ;
43
35
import java .util .Map .Entry ;
44
36
37
+ import org .apache .ibatis .reflection .invoker .AmbiguousMethodInvoker ;
38
+ import org .apache .ibatis .reflection .invoker .GetFieldInvoker ;
39
+ import org .apache .ibatis .reflection .invoker .Invoker ;
40
+ import org .apache .ibatis .reflection .invoker .MethodInvoker ;
41
+ import org .apache .ibatis .reflection .invoker .SetFieldInvoker ;
42
+ import org .apache .ibatis .reflection .property .PropertyNamer ;
43
+ import org .apache .ibatis .util .MapUtil ;
44
+
45
45
/**
46
46
* This class represents a cached set of class definition information that
47
47
* allows for easy mapping between property names and getter/setter methods.
@@ -64,9 +64,9 @@ public class Reflector {
64
64
public Reflector (Class <?> clazz ) {
65
65
type = clazz ;
66
66
addDefaultConstructor (clazz );
67
- Method [] allMethods = getClassMethods (clazz );
68
- addGetMethods (allMethods );
69
- addSetMethods (allMethods );
67
+ Method [] classMethods = getClassMethods (clazz );
68
+ addGetMethods (classMethods );
69
+ addSetMethods (classMethods );
70
70
addFields (clazz );
71
71
readablePropertyNames = getMethods .keySet ().toArray (new String [0 ]);
72
72
writablePropertyNames = setMethods .keySet ().toArray (new String [0 ]);
@@ -289,6 +289,7 @@ private Method[] getClassMethods(Class<?> clazz) {
289
289
}
290
290
291
291
Collection <Method > methods = uniqueMethods .values ();
292
+
292
293
return methods .toArray (new Method [0 ]);
293
294
}
294
295
0 commit comments