You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
66 lines
1.2 KiB
66 lines
1.2 KiB
package records;
|
|
|
|
public record TestRecordGenericVararg<T>(T first, T... other) {
|
|
@SafeVarargs
|
|
public TestRecordGenericVararg(T first, T... other) {
|
|
this.first = first;// 5
|
|
this.other = other;
|
|
}
|
|
|
|
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 T first() {
|
|
return this.first;
|
|
}
|
|
|
|
public T[] other() {
|
|
return this.other;// 3
|
|
}
|
|
}
|
|
|
|
class 'records/TestRecordGenericVararg' {
|
|
method '<init> (Ljava/lang/Object;[Ljava/lang/Object;)V' {
|
|
6 5
|
|
b 6
|
|
e 7
|
|
}
|
|
|
|
method 'toString ()Ljava/lang/String;' {
|
|
1 10
|
|
6 10
|
|
}
|
|
|
|
method 'hashCode ()I' {
|
|
1 14
|
|
6 14
|
|
}
|
|
|
|
method 'equals (Ljava/lang/Object;)Z' {
|
|
2 18
|
|
7 18
|
|
}
|
|
|
|
method 'first ()Ljava/lang/Object;' {
|
|
1 22
|
|
4 22
|
|
}
|
|
|
|
method 'other ()[Ljava/lang/Object;' {
|
|
1 26
|
|
4 26
|
|
}
|
|
}
|
|
|
|
Lines mapping:
|
|
3 <-> 27
|
|
5 <-> 6
|
|
|