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

31 lines
652 B
Kotlin
Vendored

// FILE: ConstructorExample.java
import lombok.*;
@NoArgsConstructor(staticName = "make")
public class ConstructorExample {
public ConstructorExample(String arg) {
}
@Getter @Setter private int age = 10;
@Getter(AccessLevel.PROTECTED) private String name;
static void javaUsage() {
ConstructorExample existing = new ConstructorExample("existing");
ConstructorExample generated = ConstructorExample.make();
}
}
// FILE: test.kt
fun box(): String {
val existing: ConstructorExample = ConstructorExample("existing")
val generated: ConstructorExample = ConstructorExample.make()
return "OK"
}