Files
openide/plugins/java-decompiler/engine/testData/results/TestRecordVararg.dec
Tagir Valeev 10299a7f0f [java-decompiler] IDEA-246839 Support java records in decompiler
Also: support preview levels in ClsFileImpl
Also fixes: IDEA-247551 Exception on first opening of record .class file

GitOrigin-RevId: 4362d669d1c16b8230d6d8ab803465b6a7476803
2020-08-06 07:49:05 +00:00

65 lines
1.0 KiB
Plaintext

package records;
public record TestRecordVararg(int x, int[]... y) {
public TestRecordVararg(int x, int[]... y) {
this.x = x;
this.y = y;
}
public final String toString() {
return this.toString<invokedynamic>(this);
}
public final int hashCode() {
return this.hashCode<invokedynamic>(this);
}
public final boolean equals(Object o) {
return this.equals<invokedynamic>(this, o);
}
public int x() {
return this.x;
}
public int[][] y() {
return this.y;// 3
}
}
class 'records/TestRecordVararg' {
method '<init> (I[[I)V' {
6 4
b 5
e 6
}
method 'toString ()Ljava/lang/String;' {
1 9
6 9
}
method 'hashCode ()I' {
1 13
6 13
}
method 'equals (Ljava/lang/Object;)Z' {
2 17
7 17
}
method 'x ()I' {
1 21
4 21
}
method 'y ()[[I' {
1 25
4 25
}
}
Lines mapping:
3 <-> 26