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 4 #1546

Merged
merged 1 commit into from
Jul 25, 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
@@ -1,6 +1,7 @@
package p;

public class A implements I {
@Override
public void m() {
for (A a : getCollection()) {
a.abc();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ public class A_test1059 {
interface B {
@interface C {
int i= /*[*/extracted();/*]*/
}
}
}

protected static int extracted() {
return 0;
static int extracted() {
return 0;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ int foo() {
return extracted();
}
}
}

protected static int extracted() {
/*[*/return 0;/*]*/
static int extracted() {
/*[*/return 0;/*]*/
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public C(T param){
field1 = param;
}
public static void main(String[] args) {
C.testFunction(new C<String>(null).getField());
C.testFunction(new C<>(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 @@ -2,7 +2,7 @@

class A<E> {
String x() {
return A.<String>bar();
return bar();
}

static <T> T bar() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

class A<E> {
String x() {
return this.<String>bar();
return bar();
}

<T> T bar() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

class A<E> extends Super {
String x() {
return super.<String>bar();
return super.bar();
}

<T> T bar() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ interface A{
}
class B implements A {

@Override
public int getConst() {
return CONST;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ public interface A {
void method();
}
class B implements A {
@Override
public final void method() {

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

public class A implements B.Foo {

@Override
public void b() {
List<Object> l = null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,16 @@ interface Foo {
}

static class B implements Foo {
@Override
public void baz1() {
}
@Override
public void baz2() {
}
@Override
public void baz3() {
}
@Override
public void baz4() {
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ interface A{
int[] m()[];
}
class B implements A{
@Override
public int[] m()[] {
return null;
}
Expand Down
Loading