You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Builder
public class TotoSample {
private String toto;
}
The following code provides compilation errors
[ERROR] ~/src/main/java/Main.java:[3,1] cannot find symbol
[ERROR] symbol: static builder
[ERROR] location: class
[ERROR] ~/src/main/java/Main.java:[10,27] cannot find symbol
[ERROR] symbol: method builder()
[ERROR] location: class Main
[ERROR] -> [Help 1]
import static pojo.TotoSample.builder;
/**
* Created 06/03/17.
*/
public class Main {
public static void main(String[] args) {
TotoSample toto = builder().toto("toto").build();
}
}
But when i expand static import, it works !! TotoSample.builder().toto("toto").build()
In the aim to reproduce the error, i used this pom configuration :
Given that Pojo :
The following code provides compilation errors
[ERROR] ~/src/main/java/Main.java:[3,1] cannot find symbol
[ERROR] symbol: static builder
[ERROR] location: class
[ERROR] ~/src/main/java/Main.java:[10,27] cannot find symbol
[ERROR] symbol: method builder()
[ERROR] location: class Main
[ERROR] -> [Help 1]
But when i expand static import, it works !!
TotoSample.builder().toto("toto").build()
In the aim to reproduce the error, i used this pom configuration :
The text was updated successfully, but these errors were encountered: