Skip to content

Commit d7647d0

Browse files
committed
java 16 fix
Signed-off-by: olivier lamy <[email protected]>
1 parent c393637 commit d7647d0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

plexus-compilers/plexus-compiler-javac/src/test/java/org/codehaus/plexus/compiler/javac/AbstractJavacCompilerTest.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,9 @@ public String getTargetVersion()
117117
if (javaVersion.contains("15")){
118118
return "15";
119119
}
120+
if (javaVersion.contains("16")){
121+
return "16";
122+
}
120123
return super.getTargetVersion();
121124
}
122125

@@ -140,6 +143,9 @@ public String getSourceVersion()
140143
{
141144
return "15";
142145
}
146+
if (javaVersion.contains("16")){
147+
return "16";
148+
}
143149
return super.getTargetVersion();
144150
}
145151

0 commit comments

Comments
 (0)