mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-11 03:13:38 +00:00
13 lines
246 B
Java
13 lines
246 B
Java
// version 14:
|
|
public record ExtensionMethodOnRecord() {
|
|
public void test() {
|
|
ExtensionMethodOnRecord.Extensions.intValue("1");
|
|
}
|
|
|
|
static class Extensions {
|
|
public static Integer intValue(String s) {
|
|
return Integer.valueOf(s);
|
|
}
|
|
}
|
|
}
|