|
16 | 16 |
|
17 | 17 | package io.helidon.integrations.graal.nativeimage.extension; |
18 | 18 |
|
19 | | -import java.io.IOException; |
20 | 19 | import java.lang.reflect.Constructor; |
21 | 20 | import java.lang.reflect.Field; |
22 | 21 | import java.lang.reflect.Method; |
23 | | -import java.util.ArrayList; |
24 | 22 | import java.util.Arrays; |
25 | 23 | import java.util.HashMap; |
26 | 24 | import java.util.HashSet; |
|
41 | 39 | import io.github.classgraph.FieldInfo; |
42 | 40 | import io.github.classgraph.MethodParameterInfo; |
43 | 41 | import io.github.classgraph.ReferenceTypeSignature; |
44 | | -import io.github.classgraph.Resource; |
45 | | -import io.github.classgraph.ResourceList; |
46 | 42 | import io.github.classgraph.ScanResult; |
47 | 43 | import io.github.classgraph.TypeArgument; |
48 | 44 | import io.github.classgraph.TypeSignature; |
@@ -269,21 +265,6 @@ public Set<Class<?>> findInterfaces(Class<?> aClass) { |
269 | 265 | return result; |
270 | 266 | } |
271 | 267 |
|
272 | | - List<String> findResources(String name) { |
273 | | - ResourceList allResources = scan.getResourcesWithPath(name); |
274 | | - List<String> list = new ArrayList<>(); |
275 | | - for (Resource resource : allResources) { |
276 | | - String contentAsString = null; |
277 | | - try { |
278 | | - contentAsString = resource.getContentAsString(); |
279 | | - } catch (IOException e) { |
280 | | - tracer.parsing(() -> "Failed to load resource " + resource.getPath(), e); |
281 | | - } |
282 | | - list.add(contentAsString); |
283 | | - } |
284 | | - return list; |
285 | | - } |
286 | | - |
287 | 268 | void processAnnotatedFields(String annotation, BiConsumer<Class<?>, Field> fieldProcessor) { |
288 | 269 | InclusionFilter inclusionFilter = new InclusionFilter(tracer, exclusion, "field annotated by " + annotation); |
289 | 270 | ClassResolverMapper mapper = new ClassResolverMapper(tracer, classResolver, "field annotated by " + annotation); |
|
0 commit comments