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
C:\path-to-project\src\main\java\com\example\BugTest.java:8: warning: [rawtypes] found raw type: List
@Builder
^
missing type arguments for generic class List<E>
Note that the build() method returns a raw List, instead of List<String>.
I am using lombok 1.16.16. It would be appreciable if the return type preserves the generics information.
The text was updated successfully, but these errors were encountered:
victorwss
changed the title
Unchecked warning using @Builder returning a parameterized type.
Rawtypes warning using @Builder returning a parameterized type.
Jun 20, 2017
Compiling this code with lombok:
Produces the following warning:
The delomboked source confirms it:
Note that the
build()
method returns a rawList
, instead ofList<String>
.I am using lombok 1.16.16. It would be appreciable if the return type preserves the generics information.
The text was updated successfully, but these errors were encountered: