File tree Expand file tree Collapse file tree 1 file changed +0
-9
lines changed
graalpython/com.oracle.graal.python.processor/src/com/oracle/graal/python/processor Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change 42
42
43
43
import java .util .ArrayList ;
44
44
import java .util .Arrays ;
45
- import java .util .HashMap ;
46
45
import java .util .List ;
47
- import java .util .Map ;
48
46
49
47
import javax .lang .model .element .Element ;
50
48
import javax .lang .model .element .ElementKind ;
@@ -88,8 +86,6 @@ public enum Param {
88
86
Extra ,
89
87
}
90
88
91
- private static final Map <TypeElement , ConverterFactory []> cache = new HashMap <>();
92
-
93
89
private static ConverterFactory [] BuiltinBoolean ;
94
90
private static ConverterFactory [] BuiltinIntToBoolean ;
95
91
private static ConverterFactory [] BuiltinString ;
@@ -167,10 +163,6 @@ public static ConverterFactory[] getBuiltin(ArgumentClinic annotation) {
167
163
}
168
164
169
165
public static ConverterFactory [] getForClass (TypeElement conversionClass ) throws ProcessingError {
170
- ConverterFactory [] cached = cache .get (conversionClass );
171
- if (cached != null ) {
172
- return cached ;
173
- }
174
166
ArrayList <ConverterFactory > factories = new ArrayList <>();
175
167
for (Element e : conversionClass .getEnclosedElements ()) {
176
168
ClinicConverterFactory annot = e .getAnnotation (ClinicConverterFactory .class );
@@ -212,7 +204,6 @@ public static ConverterFactory[] getForClass(TypeElement conversionClass) throws
212
204
throw new ProcessingError (conversionClass , "No ClinicConverterFactory annotation found." );
213
205
}
214
206
ConverterFactory [] result = factories .toArray (new ConverterFactory [0 ]);
215
- cache .put (conversionClass , result );
216
207
return result ;
217
208
}
218
209
You can’t perform that action at this time.
0 commit comments