Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed tests failing after requiring minimal 1.8 compliance, part 6 #1551

Merged
merged 1 commit into from
Jul 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ class A {
<T extends Number> A(Map<T, T> map) { }

A() {
this(Collections.<Float, Float>emptyMap());
this(Collections.emptyMap());
Map<Float, Float> emptyMap= Collections.emptyMap();
Map<?, ?> emptyMap2= Collections.emptyMap();
new A(Collections.<Float, Float>emptyMap());
new A(Collections.emptyMap());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ public A(T param){
field1 = param;
}
public static void main(String[] args) {
A.testFunction(new A<String>(null).getField());
A.testFunction(new A<>(null).getField());
}
public static void testFunction(String param){
System.out.println("S " + param);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ public void test30() throws Exception{
}

@Test
@Ignore("https://github.com/eclipse-jdt/eclipse.jdt.ui/issues/1552")
public void test31() throws Exception{
helper1(8, 30, 8, 30);
}
Expand Down
Loading
Loading