You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: plexus-compilers/plexus-compiler-javac/src/test/java/org/codehaus/plexus/compiler/javac/AbstractJavacCompilerTest.java
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -61,7 +61,7 @@ protected String getRoleHint()
61
61
protectedintexpectedErrors()
62
62
{
63
63
StringjavaVersion = getJavaVersion();
64
-
if (Arrays.asList("9.0","11", "14").contains(javaVersion)){
64
+
if (javaVersion.contains("9.0")||javaVersion.contains("11")||javaVersion.contains("14")){
65
65
// lots of new warnings about obsoletions for future releases
66
66
return5;
67
67
}
@@ -80,7 +80,7 @@ protected int expectedErrors()
80
80
protectedintexpectedWarnings()
81
81
{
82
82
StringjavaVersion = getJavaVersion();
83
-
if (Arrays.asList("11", "14").contains(javaVersion)){
83
+
if (javaVersion.contains("9.0")||javaVersion.contains("11")||javaVersion.contains("14")){
84
84
return1;
85
85
}
86
86
if (javaVersion.contains("9.0")){
@@ -140,7 +140,7 @@ public String getSourceVersion()
140
140
protectedCollection<String> expectedOutputFiles()
141
141
{
142
142
StringjavaVersion = getJavaVersion();
143
-
if (Arrays.asList( "9.0", "11", "14").contains(javaVersion))
143
+
if (javaVersion.contains("9.0")||javaVersion.contains("11")||javaVersion.contains("14"))
0 commit comments