File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
inject-generator/src/main/java/io/avaje/inject/generator Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -128,14 +128,16 @@ private Set<TypeElement> importedElements(RoundEnvironment roundEnv) {
128128 .map (ImportPrism ::getInstanceOn )
129129 .flatMap (p -> p .value ().stream ())
130130 .map (ProcessingContext ::asElement )
131- .filter (
132- e ->
133- !moduleFileProvided .contains (e .getQualifiedName ().toString ())
134- && !pluginFileProvided .contains (e .getQualifiedName ().toString ()))
131+ .filter (this ::notAlreadyProvided )
135132 .peek (e -> addImportedType (e .getQualifiedName ().toString ()))
136133 .collect (Collectors .toSet ());
137134 }
138135
136+ private boolean notAlreadyProvided (TypeElement e ) {
137+ final String type = e .getQualifiedName ().toString ();
138+ return !moduleFileProvided .contains (type ) && !pluginFileProvided .contains (type );
139+ }
140+
139141 private static Map <String , AspectImportPrism > importedAspects (RoundEnvironment roundEnv ) {
140142 return Optional .ofNullable (element (AspectImportPrism .PRISM_TYPE ))
141143 .map (roundEnv ::getElementsAnnotatedWith )
You can’t perform that action at this time.
0 commit comments