mirror of
https://github.com/zaaarf/lillero-processor.git
synced 2024-11-13 01:49:22 +01:00
chore: shortened @RegisterBareInjector to @BareInjector
This commit is contained in:
parent
5c2d780acb
commit
c83c5eabef
2 changed files with 3 additions and 3 deletions
|
@ -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))
|
||||
|
|
|
@ -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 {}
|
Loading…
Reference in a new issue