Skip to content

Commit 4d8f396

Browse files
authored
Merge pull request #136 from avaje/feature/ctx-javax-flag
Simplify useJavax determination in ProcessingContext
2 parents 72fe111 + c0d0684 commit 4d8f396

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,8 @@ public ProcessingContext(ProcessingEnvironment env, PlatformAdapter readAdapter)
5858
final var override = env.getOptions().get("useJavax");
5959
if (override != null || (javax && jakarta)) {
6060
this.useJavax = Boolean.parseBoolean(override);
61-
} else if (javax && !jakarta) {
62-
useJavax = javax;
6361
} else {
64-
useJavax = false;
62+
this.useJavax = javax;
6563
}
6664
}
6765

0 commit comments

Comments
 (0)