summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
author zaaarf <zaaarf@proton.me>2023-05-26 16:11:05 +0200
committer zaaarf <zaaarf@proton.me>2023-05-26 16:11:05 +0200
commitc83c5eabef712ad8f221e3b6ff4e678931e942ab (patch)
tree36c5081242372b0eb48733adf0735d9f560cdde0 /src
parent5c2d780acbae1a7786d9c47711d3bf7e7670d7c0 (diff)
chore: shortened @RegisterBareInjector to @BareInjector
Diffstat (limited to 'src')
-rw-r--r--src/main/java/ftbsc/lll/processor/LilleroProcessor.java2
-rw-r--r--src/main/java/ftbsc/lll/processor/annotations/BareInjector.java (renamed from src/main/java/ftbsc/lll/processor/annotations/RegisterBareInjector.java)4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/ftbsc/lll/processor/LilleroProcessor.java b/src/main/java/ftbsc/lll/processor/LilleroProcessor.java
index 533375d..111d068 100644
--- a/src/main/java/ftbsc/lll/processor/LilleroProcessor.java
+++ b/src/main/java/ftbsc/lll/processor/LilleroProcessor.java
@@ -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))
diff --git a/src/main/java/ftbsc/lll/processor/annotations/RegisterBareInjector.java b/src/main/java/ftbsc/lll/processor/annotations/BareInjector.java
index 1340bf7..40d6ab2 100644
--- a/src/main/java/ftbsc/lll/processor/annotations/RegisterBareInjector.java
+++ b/src/main/java/ftbsc/lll/processor/annotations/BareInjector.java
@@ -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 {}