@@ -101,15 +101,14 @@ public static void acceptClassLoader(ClassLoader classLoader) {
101
101
102
102
/**
103
103
* Clear the introspection cache for the given ClassLoader, removing the
104
- * introspection results for all classes underneath that ClassLoader,
105
- * and deregistering the ClassLoader (and any of its children) from the
106
- * acceptance list.
104
+ * introspection results for all classes underneath that ClassLoader, and
105
+ * removing the ClassLoader (and its children) from the acceptance list.
107
106
* @param classLoader the ClassLoader to clear the cache for
108
107
*/
109
108
public static void clearClassLoader (ClassLoader classLoader ) {
110
109
synchronized (classCache ) {
111
110
for (Iterator <Class > it = classCache .keySet ().iterator (); it .hasNext ();) {
112
- Class beanClass = it .next ();
111
+ Class <?> beanClass = it .next ();
113
112
if (isUnderneathClassLoader (beanClass .getClassLoader (), classLoader )) {
114
113
it .remove ();
115
114
}
@@ -127,13 +126,11 @@ public static void clearClassLoader(ClassLoader classLoader) {
127
126
128
127
/**
129
128
* Create CachedIntrospectionResults for the given bean class.
130
- * <P>We don't want to use synchronization here. Object references are atomic,
131
- * so we can live with doing the occasional unnecessary lookup at startup only.
132
129
* @param beanClass the bean class to analyze
133
130
* @return the corresponding CachedIntrospectionResults
134
131
* @throws BeansException in case of introspection failure
135
132
*/
136
- static CachedIntrospectionResults forClass (Class beanClass ) throws BeansException {
133
+ static CachedIntrospectionResults forClass (Class <?> beanClass ) throws BeansException {
137
134
CachedIntrospectionResults results ;
138
135
Object value ;
139
136
synchronized (classCache ) {
@@ -225,7 +222,7 @@ private static boolean isUnderneathClassLoader(ClassLoader candidate, ClassLoade
225
222
* @param beanClass the bean class to analyze
226
223
* @throws BeansException in case of introspection failure
227
224
*/
228
- private CachedIntrospectionResults (Class beanClass ) throws BeansException {
225
+ private CachedIntrospectionResults (Class <?> beanClass ) throws BeansException {
229
226
try {
230
227
if (logger .isTraceEnabled ()) {
231
228
logger .trace ("Getting BeanInfo for class [" + beanClass .getName () + "]" );
@@ -248,7 +245,7 @@ private CachedIntrospectionResults(Class beanClass) throws BeansException {
248
245
// garbage collection on class loader shutdown - we cache it here anyway,
249
246
// in a GC-friendly manner. In contrast to CachedIntrospectionResults,
250
247
// Introspector does not use WeakReferences as values of its WeakHashMap!
251
- Class classToFlush = beanClass ;
248
+ Class <?> classToFlush = beanClass ;
252
249
do {
253
250
Introspector .flushFromCaches (classToFlush );
254
251
classToFlush = classToFlush .getSuperclass ();
@@ -286,7 +283,7 @@ BeanInfo getBeanInfo() {
286
283
return this .beanInfo ;
287
284
}
288
285
289
- Class getBeanClass () {
286
+ Class <?> getBeanClass () {
290
287
return this .beanInfo .getBeanDescriptor ().getBeanClass ();
291
288
}
292
289
@@ -314,7 +311,7 @@ PropertyDescriptor[] getPropertyDescriptors() {
314
311
return pds ;
315
312
}
316
313
317
- private PropertyDescriptor buildGenericTypeAwarePropertyDescriptor (Class beanClass , PropertyDescriptor pd ) {
314
+ private PropertyDescriptor buildGenericTypeAwarePropertyDescriptor (Class <?> beanClass , PropertyDescriptor pd ) {
318
315
try {
319
316
return new GenericTypeAwarePropertyDescriptor (beanClass , pd .getName (), pd .getReadMethod (),
320
317
pd .getWriteMethod (), pd .getPropertyEditorClass ());
0 commit comments