Files
kotlin-fork/plugins/lombok/testData/box/allArgsConstructor.kt
T

26 lines
457 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
fun box(): String {
val generated = ConstructorExample(12, "sdf", true)
return "OK"
}