@@ -40,7 +40,7 @@ public class ValueExtractorDescriptor {
4040
4141 public ValueExtractorDescriptor (ValueExtractor <?> valueExtractor ) {
4242 this .key = new Key (
43- getExtractedType ( valueExtractor .getClass () ),
43+ getContainerType ( valueExtractor .getClass () ),
4444 getExtractedTypeParameter ( valueExtractor .getClass () )
4545 );
4646 this .valueExtractor = valueExtractor ;
@@ -50,30 +50,30 @@ public ValueExtractorDescriptor(ValueExtractor<?> valueExtractor) {
5050 @ SuppressWarnings ("rawtypes" )
5151 private static TypeVariable <?> getExtractedTypeParameter (Class <? extends ValueExtractor > extractorImplementationType ) {
5252 AnnotatedParameterizedType valueExtractorDefinition = getValueExtractorDefinition ( extractorImplementationType );
53- AnnotatedType extractedType = valueExtractorDefinition .getAnnotatedActualTypeArguments ()[0 ];
54- Class <?> extractedTypeRaw = (Class <?>) TypeHelper .getErasedType ( extractedType .getType () );
53+ AnnotatedType containerType = valueExtractorDefinition .getAnnotatedActualTypeArguments ()[0 ];
54+ Class <?> containerTypeRaw = (Class <?>) TypeHelper .getErasedType ( containerType .getType () );
5555
5656 TypeVariable <?> extractedTypeParameter = null ;
5757
58- if ( extractedType .isAnnotationPresent ( ExtractedValue .class ) ) {
59- if ( extractedType instanceof AnnotatedArrayType ) {
60- extractedTypeParameter = new ArrayElement ( (AnnotatedArrayType ) extractedType );
58+ if ( containerType .isAnnotationPresent ( ExtractedValue .class ) ) {
59+ if ( containerType instanceof AnnotatedArrayType ) {
60+ extractedTypeParameter = new ArrayElement ( (AnnotatedArrayType ) containerType );
6161 }
6262 else {
6363 extractedTypeParameter = AnnotatedObject .INSTANCE ;
6464 }
6565 }
6666
67- if ( extractedType instanceof AnnotatedParameterizedType ) {
68- AnnotatedParameterizedType parameterizedExtractedType = (AnnotatedParameterizedType ) extractedType ;
67+ if ( containerType instanceof AnnotatedParameterizedType ) {
68+ AnnotatedParameterizedType parameterizedExtractedType = (AnnotatedParameterizedType ) containerType ;
6969 int i = 0 ;
7070 for ( AnnotatedType typeArgument : parameterizedExtractedType .getAnnotatedActualTypeArguments () ) {
7171 if ( typeArgument .isAnnotationPresent ( ExtractedValue .class ) ) {
7272 if ( extractedTypeParameter != null ) {
7373 throw LOG .getValueExtractorDeclaresExtractedValueMultipleTimesException ( extractorImplementationType );
7474 }
7575
76- extractedTypeParameter = extractedTypeRaw .getTypeParameters ()[i ];
76+ extractedTypeParameter = containerTypeRaw .getTypeParameters ()[i ];
7777 }
7878 i ++;
7979 }
@@ -87,10 +87,10 @@ private static TypeVariable<?> getExtractedTypeParameter(Class<? extends ValueEx
8787 }
8888
8989 @ SuppressWarnings ("rawtypes" )
90- private static Class <?> getExtractedType (Class <? extends ValueExtractor > extractorImplementationType ) {
90+ private static Class <?> getContainerType (Class <? extends ValueExtractor > extractorImplementationType ) {
9191 AnnotatedParameterizedType genericInterface = getValueExtractorDefinition ( extractorImplementationType );
92- AnnotatedType extractedType = genericInterface .getAnnotatedActualTypeArguments ()[0 ];
93- return TypeHelper .getErasedReferenceType ( extractedType .getType () );
92+ AnnotatedType containerType = genericInterface .getAnnotatedActualTypeArguments ()[0 ];
93+ return TypeHelper .getErasedReferenceType ( containerType .getType () );
9494 }
9595
9696 private static AnnotatedParameterizedType getValueExtractorDefinition (Class <?> extractorImplementationType ) {
@@ -138,8 +138,8 @@ public Key getKey() {
138138 return key ;
139139 }
140140
141- public Class <?> getExtractedType () {
142- return key .extractedType ;
141+ public Class <?> getContainerType () {
142+ return key .containerType ;
143143 }
144144
145145 public TypeVariable <?> getExtractedTypeParameter () {
@@ -161,20 +161,20 @@ public String toString() {
161161
162162 public static class Key {
163163
164- private final Class <?> extractedType ;
164+ private final Class <?> containerType ;
165165 private final TypeVariable <?> extractedTypeParameter ;
166166 private final int hashCode ;
167167
168- public Key (Class <?> extractedType , TypeVariable <?> extractedTypeParameter ) {
169- this .extractedType = extractedType ;
168+ public Key (Class <?> containerType , TypeVariable <?> extractedTypeParameter ) {
169+ this .containerType = containerType ;
170170 this .extractedTypeParameter = extractedTypeParameter ;
171- this .hashCode = buildHashCode ( extractedType , extractedTypeParameter );
171+ this .hashCode = buildHashCode ( containerType , extractedTypeParameter );
172172 }
173173
174- private static int buildHashCode (Type extractedType , TypeVariable <?> extractedTypeParameter ) {
174+ private static int buildHashCode (Type containerType , TypeVariable <?> extractedTypeParameter ) {
175175 final int prime = 31 ;
176176 int result = 1 ;
177- result = prime * result + extractedType .hashCode ();
177+ result = prime * result + containerType .hashCode ();
178178 result = prime * result + extractedTypeParameter .hashCode ();
179179 return result ;
180180 }
@@ -197,13 +197,13 @@ public boolean equals(Object obj) {
197197 }
198198 Key other = (Key ) obj ;
199199
200- return extractedType .equals ( other .extractedType ) &&
200+ return containerType .equals ( other .containerType ) &&
201201 extractedTypeParameter .equals ( other .extractedTypeParameter );
202202 }
203203
204204 @ Override
205205 public String toString () {
206- return "Key [extractedType =" + StringHelper .toShortString ( extractedType ) + ", extractedTypeParameter=" + extractedTypeParameter + "]" ;
206+ return "Key [containerType =" + StringHelper .toShortString ( containerType ) + ", extractedTypeParameter=" + extractedTypeParameter + "]" ;
207207 }
208208 }
209209}
0 commit comments