mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 04:15:06 +00:00
The output varies in newer eclipse versions. To address this, lombok now disables the printing of implicit constructors for eclipse.
15 lines
400 B
Java
15 lines
400 B
Java
// version 14:
|
|
import lombok.experimental.ExtensionMethod;
|
|
public @ExtensionMethod(ExtensionMethodOnRecord.Extensions.class) record ExtensionMethodOnRecord() {
|
|
static class Extensions {
|
|
Extensions() {
|
|
super();
|
|
}
|
|
public static Integer intValue(String s) {
|
|
return Integer.valueOf(s);
|
|
}
|
|
}
|
|
public void test() {
|
|
ExtensionMethodOnRecord.Extensions.intValue("1");
|
|
}
|
|
} |