@@ -70,12 +70,12 @@ public String findNameForRegularGetter(AnnotatedMethod am, String name)
70
70
// coverage without false matches; but for now let's assume there is
71
71
// no reason to use any such getter from CGLib.
72
72
if ("getCallbacks" .equals (name )) {
73
- if (isCglibGetCallbacks (am )) {
73
+ if (_isCglibGetCallbacks (am )) {
74
74
return null ;
75
75
}
76
76
} else if ("getMetaClass" .equals (name )) {
77
77
// 30-Apr-2009, tatu: Need to suppress serialization of a cyclic reference
78
- if (isGroovyMetaClassGetter (am )) {
78
+ if (_isGroovyMetaClassGetter (am )) {
79
79
return null ;
80
80
}
81
81
}
@@ -173,7 +173,7 @@ protected static String stdManglePropertyName(final String basename, final int o
173
173
174
174
/*
175
175
/**********************************************************************
176
- /* Legacy methods copied in 2.12 from "BeanUtil" -- are these still needed?
176
+ /* Legacy methods moved in 2.12 from "BeanUtil" -- are these still needed?
177
177
/**********************************************************************
178
178
*/
179
179
@@ -182,7 +182,7 @@ protected static String stdManglePropertyName(final String basename, final int o
182
182
// At this point caller has detected a potential getter method with
183
183
// name "getCallbacks" and we need to determine if it is indeed injected
184
184
// by Cglib. We do this by verifying that the result type is "net.sf.cglib.proxy.Callback[]"
185
- private static boolean isCglibGetCallbacks (AnnotatedMethod am )
185
+ protected boolean _isCglibGetCallbacks (AnnotatedMethod am )
186
186
{
187
187
Class <?> rt = am .getRawType ();
188
188
// Ok, first: must return an array type
@@ -206,7 +206,7 @@ private static boolean isCglibGetCallbacks(AnnotatedMethod am)
206
206
}
207
207
208
208
// Another helper method to deal with Groovy's problematic metadata accessors
209
- private static boolean isGroovyMetaClassGetter (AnnotatedMethod am ) {
209
+ protected boolean _isGroovyMetaClassGetter (AnnotatedMethod am ) {
210
210
return am .getRawType ().getName ().startsWith ("groovy.lang" );
211
211
}
212
212
0 commit comments