Skip to content

Commit 22a0781

Browse files
committed
Update ProcessingContext.java
1 parent da648b7 commit 22a0781

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

http-generator-core/src/main/java/io/avaje/http/generator/core/ProcessingContext.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public class ProcessingContext {
2929
private final DocContext docContext;
3030
private final boolean useComponent;
3131
private final boolean useJavax;
32-
private final String annotationDI;
32+
private final String diAnnotation;
3333

3434
public ProcessingContext(ProcessingEnvironment env, PlatformAdapter readAdapter) {
3535
this.readAdapter = readAdapter;
@@ -40,7 +40,7 @@ public ProcessingContext(ProcessingEnvironment env, PlatformAdapter readAdapter)
4040
this.openApiAvailable = isTypeAvailable(Constants.OPENAPIDEFINITION);
4141
this.docContext = new DocContext(env, openApiAvailable);
4242
this.useComponent = isTypeAvailable(Constants.COMPONENT);
43-
this.annotationDI = useComponent ? "@Component" : "@Singleton";
43+
this.diAnnotation = useComponent ? "@Component" : "@Singleton";
4444

4545
final var javax = isTypeAvailable(Constants.SINGLETON_JAVAX);
4646
final var jakarta = isTypeAvailable(Constants.SINGLETON_JAKARTA);
@@ -114,6 +114,6 @@ public PlatformAdapter platform() {
114114
}
115115

116116
public String getDIAnnotation() {
117-
return annotationDI;
117+
return diAnnotation;
118118
}
119119
}

0 commit comments

Comments
 (0)