Files
kotlin-fork/plugins/lombok/lombok-compiler-plugin/testData/compile/allArgsConstructor.kt
T
2021-04-25 18:18:04 +03:00

27 lines
461 B
Kotlin
Vendored

//FILE: ConstructorExample.java
import lombok.*;
@AllArgsConstructor
public class ConstructorExample {
@Getter @Setter private int age = 10;
@Getter(AccessLevel.PROTECTED) private String name;
private boolean otherField;
static void javaUsage() {
val generated = new ConstructorExample(12, "sdf", true);
}
}
//FILE: test.kt
object Test {
fun usage() {
val generated = ConstructorExample(12, "sdf", true)
}
}