chore: shortened @RegisterBareInjector to @BareInjector

This commit is contained in:
zaaarf 2023-05-26 16:11:05 +02:00
parent 5c2d780acb
commit c83c5eabef
No known key found for this signature in database
GPG key ID: 6445A5CD15E5B40C
2 changed files with 3 additions and 3 deletions

View file

@ -140,7 +140,7 @@ public class LilleroProcessor extends AbstractProcessor {
.map(e -> (TypeElement) e)
.filter(this::isValidInjector)
.forEach(this::generateClasses);
} else if(annotation.getQualifiedName().contentEquals(RegisterBareInjector.class.getName())) {
} else if(annotation.getQualifiedName().contentEquals(BareInjector.class.getName())) {
TypeMirror injectorType = this.processingEnv.getElementUtils().getTypeElement("ftbsc.lll.IInjector").asType();
for(Element e : roundEnv.getElementsAnnotatedWith(annotation)) {
if(this.processingEnv.getTypeUtils().isAssignable(e.asType(), injectorType))

View file

@ -11,8 +11,8 @@ import java.lang.annotation.RetentionPolicy;
* (META-INF/services/ftbsc.lll.IInjector) without actually processing it. This can
* be used to mix in a same project regular {@link IInjector}s and those generated
* by the processor.
* @since 0.6.0
* @since 0.6.1
*/
@Retention(RetentionPolicy.CLASS)
@java.lang.annotation.Target(ElementType.TYPE)
public @interface RegisterBareInjector {}
public @interface BareInjector {}