mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-04 08:51:02 +07:00
language level 16, remove language level 14_preview (IDEA-257409)
GitOrigin-RevId: 1f9626ba04ffd9588b0cf9b8a9f699faa613359b
This commit is contained in:
committed by
intellij-monorepo-bot
parent
cb72e8a50c
commit
fd17a8bb75
@@ -19,7 +19,7 @@ record RecThrows(int x) {
|
||||
public int y() throws Exception {return x;}
|
||||
}
|
||||
record CheckOverride(int x) {
|
||||
<error descr="Method does not override method from its superclass">@Override</error> public int x() { return x; }
|
||||
@Override public int x() { return x; }
|
||||
<error descr="Method does not override method from its superclass">@Override</error> public int y() { return x; }
|
||||
}
|
||||
record VarArg(int... x) {
|
||||
|
||||
@@ -71,5 +71,5 @@ record StaticFieldCollides(int i) {
|
||||
static int <error descr="Variable 'i' is already defined in the scope">i</error>;
|
||||
}
|
||||
record Incomplete(@<error descr="Class reference expected">i</error>nt a) {}
|
||||
record CStyle(int a[]) {}
|
||||
record CStyle(int a<error descr="C-style record component declaration is not allowed">[]</error>) {}
|
||||
record SafeVarargComponent(<error descr="@SafeVarargs annotation cannot be applied for a record component">@SafeVarargs</error> int... component) {}
|
||||
@@ -4,7 +4,7 @@ class NotRecord {
|
||||
}
|
||||
}
|
||||
record NonPublic(int x) {
|
||||
<error descr="Compact constructor must be 'public'">NonPublic</error> {
|
||||
NonPublic {
|
||||
|
||||
}
|
||||
}
|
||||
@@ -28,11 +28,11 @@ record ReturnInCompact(int x) {
|
||||
}
|
||||
}
|
||||
record NotInitialized(int x,
|
||||
int <error descr="Record component 'y' might not be initialized in canonical constructor">y</error>,
|
||||
int y,
|
||||
int z) {
|
||||
public NotInitialized {
|
||||
this.x = 0;
|
||||
if (Math.random() > 0.5) this.y = 1;
|
||||
<error descr="Cannot assign a value to final variable 'x'">this.x</error> = 0;
|
||||
if (Math.random() > 0.5) <error descr="Cannot assign a value to final variable 'y'">this.y</error> = 1;
|
||||
}
|
||||
}
|
||||
record TwoCompacts(int x, int y) {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
record NotPublic(int x, int y) {
|
||||
<error descr="Canonical constructor must be 'public'">NotPublic</error>(int x, int y) {this.x = x; this.y = y;}
|
||||
NotPublic(int x, int y) {this.x = x; this.y = y;}
|
||||
NotPublic() {this(0,0);}
|
||||
}
|
||||
record Generic(String x) {
|
||||
|
||||
Reference in New Issue
Block a user