@@ -59,8 +59,7 @@ abstract class SerializableTypeWrapper {
5959 private static final Class <?>[] SUPPORTED_SERIALIZABLE_TYPES = {
6060 GenericArrayType .class , ParameterizedType .class , TypeVariable .class , WildcardType .class };
6161
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 );
6463
6564
6665 /**
@@ -84,7 +83,7 @@ public static Type forMethodParameter(MethodParameter methodParameter) {
8483 */
8584 @ SuppressWarnings ("serial" )
8685 public static Type forGenericSuperclass (final Class <?> type ) {
87- return forTypeProvider (new DefaultTypeProvider () {
86+ return forTypeProvider (new SimpleTypeProvider () {
8887 @ Override
8988 public Type getType () {
9089 return type .getGenericSuperclass ();
@@ -100,7 +99,7 @@ public static Type[] forGenericInterfaces(final Class<?> type) {
10099 Type [] result = new Type [type .getGenericInterfaces ().length ];
101100 for (int i = 0 ; i < result .length ; i ++) {
102101 final int index = i ;
103- result [i ] = forTypeProvider (new DefaultTypeProvider () {
102+ result [i ] = forTypeProvider (new SimpleTypeProvider () {
104103 @ Override
105104 public Type getType () {
106105 return type .getGenericInterfaces ()[index ];
@@ -118,7 +117,7 @@ public static Type[] forTypeParameters(final Class<?> type) {
118117 Type [] result = new Type [type .getTypeParameters ().length ];
119118 for (int i = 0 ; i < result .length ; i ++) {
120119 final int index = i ;
121- result [i ] = forTypeProvider (new DefaultTypeProvider () {
120+ result [i ] = forTypeProvider (new SimpleTypeProvider () {
122121 @ Override
123122 public Type getType () {
124123 return type .getTypeParameters ()[index ];
@@ -198,10 +197,10 @@ interface TypeProvider extends Serializable {
198197
199198
200199 /**
201- * Default implementation of {@link TypeProvider} with a {@code null} source.
200+ * Base implementation of {@link TypeProvider} with a {@code null} source.
202201 */
203202 @ SuppressWarnings ("serial" )
204- private static abstract class DefaultTypeProvider implements TypeProvider {
203+ private static abstract class SimpleTypeProvider implements TypeProvider {
205204
206205 @ Override
207206 public Object getSource () {
0 commit comments