@@ -59,8 +59,7 @@ abstract class SerializableTypeWrapper {
59
59
private static final Class <?>[] SUPPORTED_SERIALIZABLE_TYPES = {
60
60
GenericArrayType .class , ParameterizedType .class , TypeVariable .class , WildcardType .class };
61
61
62
- private static final ConcurrentReferenceHashMap <Type , Type > cache =
63
- new ConcurrentReferenceHashMap <Type , Type >(256 );
62
+ static final ConcurrentReferenceHashMap <Type , Type > cache = new ConcurrentReferenceHashMap <Type , Type >(256 );
64
63
65
64
66
65
/**
@@ -84,7 +83,7 @@ public static Type forMethodParameter(MethodParameter methodParameter) {
84
83
*/
85
84
@ SuppressWarnings ("serial" )
86
85
public static Type forGenericSuperclass (final Class <?> type ) {
87
- return forTypeProvider (new DefaultTypeProvider () {
86
+ return forTypeProvider (new SimpleTypeProvider () {
88
87
@ Override
89
88
public Type getType () {
90
89
return type .getGenericSuperclass ();
@@ -100,7 +99,7 @@ public static Type[] forGenericInterfaces(final Class<?> type) {
100
99
Type [] result = new Type [type .getGenericInterfaces ().length ];
101
100
for (int i = 0 ; i < result .length ; i ++) {
102
101
final int index = i ;
103
- result [i ] = forTypeProvider (new DefaultTypeProvider () {
102
+ result [i ] = forTypeProvider (new SimpleTypeProvider () {
104
103
@ Override
105
104
public Type getType () {
106
105
return type .getGenericInterfaces ()[index ];
@@ -118,7 +117,7 @@ public static Type[] forTypeParameters(final Class<?> type) {
118
117
Type [] result = new Type [type .getTypeParameters ().length ];
119
118
for (int i = 0 ; i < result .length ; i ++) {
120
119
final int index = i ;
121
- result [i ] = forTypeProvider (new DefaultTypeProvider () {
120
+ result [i ] = forTypeProvider (new SimpleTypeProvider () {
122
121
@ Override
123
122
public Type getType () {
124
123
return type .getTypeParameters ()[index ];
@@ -198,10 +197,10 @@ interface TypeProvider extends Serializable {
198
197
199
198
200
199
/**
201
- * Default implementation of {@link TypeProvider} with a {@code null} source.
200
+ * Base implementation of {@link TypeProvider} with a {@code null} source.
202
201
*/
203
202
@ SuppressWarnings ("serial" )
204
- private static abstract class DefaultTypeProvider implements TypeProvider {
203
+ private static abstract class SimpleTypeProvider implements TypeProvider {
205
204
206
205
@ Override
207
206
public Object getSource () {
0 commit comments