Skip to content

Commit 0692cb4

Browse files
jorsolslachiewicz
authored andcommitted
Include 'parameter' and 'preview' describe log
The -parameter and --enable-preview compiler options affect the output of the generated classes, so it's helpful to see if those options are enabled. Signed-off-by: Jorge Solórzano <jorsol@gmail.com>
1 parent 6bcabd2 commit 0692cb4

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

plexus-compiler-api/src/main/java/org/codehaus/plexus/compiler/CompilerConfiguration.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -688,15 +688,18 @@ public String describe() {
688688
params.add("debug");
689689
}
690690
}
691-
if (isOptimize()) {
692-
params.add("optimize");
693-
}
694691
if (isVerbose()) {
695692
params.add("verbose");
696693
}
697694
if (isShowDeprecation()) {
698695
params.add("deprecation");
699696
}
697+
if (isParameters()) {
698+
params.add("parameters");
699+
}
700+
if (isEnablePreview()) {
701+
params.add("preview");
702+
}
700703

701704
// target bytecode options: release or target, module-path
702705
if (!StringUtils.isEmpty(getReleaseVersion())) {

0 commit comments

Comments
 (0)