Files
fernflower/testData/results/TypeAnnotations.dec
Roman Shevchenko 52b31bf325 [java, java-decompiler] type annotations in class files
Step 1: add top-level field/method/parameter annotations to stubs; include them in decompiled text.
2016-04-21 21:22:36 +02:00

45 lines
745 B
Plaintext

package pkg;
import java.lang.annotation.ElementType;
import java.lang.annotation.Target;
class TypeAnnotations {
@TypeAnnotations.TA("field type")
private String f1;
@TypeAnnotations.MixA("field and type")
private String f2;
@TypeAnnotations.TA("return type")
int m1() {
return 42;// 18
}
void m2(@TypeAnnotations.TA("parameter") int var1) {
}// 21
@Target({ElementType.FIELD, ElementType.TYPE_USE})
@interface MixA {
String value();
}
@Target({ElementType.TYPE_USE})
@interface TA {
String value();
}
}
class 'pkg/TypeAnnotations' {
method 'm1 ()I' {
0 13
2 13
}
method 'm2 (I)V' {
0 17
}
}
Lines mapping:
18 <-> 14
21 <-> 18