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: base-test/org.eclipse.jdt.groovy.core.tests.compiler/src/org/eclipse/jdt/groovy/core/tests/basic/GenericsTests.java
+21-33
Original file line number
Diff line number
Diff line change
@@ -2170,17 +2170,13 @@ public void testAbstractCovariance5() {
"Type safety: The return type CharSequence for process(CharSequence) from the type new Face<CharSequence>(){} needs unchecked conversion to conform to IO from the type Face<T>\n" +
"Type safety: The return type CharSequence for process(CharSequence) from the type new Face<CharSequence>(){} needs unchecked conversion to conform to IO from the type Face<T>\n" +
@@ -2200,17 +2196,13 @@ public void testAbstractCovariance6() {
2200
2196
};
2201
2197
//@formatter:on
2202
2198
2203
-
if (isAtLeastJava(JDK9)) {
2204
-
runWarningFreeTest(sources);
2205
-
} else {
2206
-
runNegativeTest(sources,
2207
-
"----------\n" +
2208
-
"1. WARNING in Impl.groovy (at line 3)\n" +
2209
-
"\tString process(String string) { string }\n" +
2210
-
"\t^^^^^^\n" +
2211
-
"Type safety: The return type String for process(String) from the type new Face<String>(){} needs unchecked conversion to conform to IO from the type Face<T>\n" +
2212
-
"----------\n");
2213
-
}
2199
+
runNegativeTest(sources,
2200
+
"----------\n" +
2201
+
"1. WARNING in Impl.groovy (at line 3)\n" +
2202
+
"\tString process(String string) { string }\n" +
2203
+
"\t^^^^^^\n" +
2204
+
"Type safety: The return type String for process(String) from the type new Face<String>(){} needs unchecked conversion to conform to IO from the type Face<T>\n" +
@@ -2230,17 +2222,13 @@ public void testAbstractCovariance7() {
2230
2222
};
2231
2223
//@formatter:on
2232
2224
2233
-
if (isAtLeastJava(JDK9)) {
2234
-
runWarningFreeTest(sources);
2235
-
} else {
2236
-
runNegativeTest(sources,
2237
-
"----------\n" +
2238
-
"1. WARNING in Impl.groovy (at line 3)\n" +
2239
-
"\tString process(String string) { string }\n" +
2240
-
"\t^^^^^^\n" +
2241
-
"Type safety: The return type String for process(String) from the type new Face<String>(){} needs unchecked conversion to conform to O from the type Face<T>\n" +
2242
-
"----------\n");
2243
-
}
2225
+
runNegativeTest(sources,
2226
+
"----------\n" +
2227
+
"1. WARNING in Impl.groovy (at line 3)\n" +
2228
+
"\tString process(String string) { string }\n" +
2229
+
"\t^^^^^^\n" +
2230
+
"Type safety: The return type String for process(String) from the type new Face<String>(){} needs unchecked conversion to conform to O from the type Face<T>\n" +
Copy file name to clipboardexpand all lines: base/org.eclipse.jdt.groovy.core/src/org/codehaus/jdt/groovy/internal/compiler/ast/GroovyCompilationUnitDeclaration.java
0 commit comments