Migrate Java code to separate QL repo.

This commit is contained in:
Pavel Avgustinov
2018-08-30 10:48:05 +01:00
parent d957c151a6
commit 846c9d5860
2319 changed files with 134386 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
class Super {
synchronized void quack() {
System.out.println("Quack.");
}
synchronized Super self() {
return this;
}
synchronized void foo() {}
void bar() {}
}
class Sub extends Super {
// NOT OK
void quack() {
super.quack();
super.quack();
}
// OK
Sub self() {
return (Sub)super.self();
}
// NOT OK
void foo() {
super.bar();
}
}
class A<T> {
synchronized void foo() {}
}
class B extends A<Integer> {
// NOT OK
void foo() {}
}
class C extends A<String> {
// NOT OK
void foo() {}
}