Skip to content

Commit 85586fd

Browse files
committed
No effective change - tidy ProcessingContext only
1 parent 516a0cc commit 85586fd

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ public class ProcessingContext {
3232
private final String diAnnotation;
3333

3434
public ProcessingContext(ProcessingEnvironment env, PlatformAdapter readAdapter) {
35-
3635
this.readAdapter = readAdapter;
3736
this.messager = env.getMessager();
3837
this.filer = env.getFiler();
@@ -43,19 +42,16 @@ public ProcessingContext(ProcessingEnvironment env, PlatformAdapter readAdapter)
4342

4443
final var options = env.getOptions();
4544
final var singletonOverride = options.get("useSingleton");
46-
4745
if (singletonOverride != null) {
4846
this.useComponent = !Boolean.parseBoolean(singletonOverride);
4947
} else {
5048
this.useComponent = isTypeAvailable(Constants.COMPONENT);
5149
}
52-
5350
this.diAnnotation = useComponent ? "@Component" : "@Singleton";
5451

5552
final var javax = isTypeAvailable(Constants.SINGLETON_JAVAX);
5653
final var jakarta = isTypeAvailable(Constants.SINGLETON_JAKARTA);
5754
final var override = env.getOptions().get("useJavax");
58-
5955
if (override != null || (javax && jakarta)) {
6056
this.useJavax = Boolean.parseBoolean(override);
6157
} else if (javax && !jakarta) {

0 commit comments

Comments
 (0)