mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 12:16:49 +00:00
test for using 'val' on an expression that involved lombok-generated code.
This commit is contained in:
1 parent
8850798a04
commit
6e25b00ace
3 files changed
+42
No files matched your search
@@ -0,0 +1,13 @@
|
||||
class MixGetterVal {
|
||||
private int x;
|
||||
public void m(int z) {
|
||||
}
|
||||
public void test() {
|
||||
final int y = x;
|
||||
m(y);
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public int getX() {
|
||||
return this.x;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
import lombok.Getter;
|
||||
import lombok.val;
|
||||
class MixGetterVal {
|
||||
private @Getter int x;
|
||||
MixGetterVal() {
|
||||
super();
|
||||
}
|
||||
public void m(int z) {
|
||||
}
|
||||
public void test() {
|
||||
final @val int y = x;
|
||||
m(y);
|
||||
}
|
||||
public @java.lang.SuppressWarnings("all") int getX() {
|
||||
return this.x;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
import lombok.Getter;
|
||||
import lombok.val;
|
||||
|
||||
class MixGetterVal {
|
||||
@Getter private int x;
|
||||
|
||||
public void m(int z) {}
|
||||
public void test() {
|
||||
val y = x;
|
||||
m(y);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user