Hi,
I'm trying to do the following:
@Data
@ToString(onlyExplicitlyIncluded = true)
@Builder
public class MyClass {
@ToString.Include
private final String member;
...
However, when I try to compile, I get the following error:
> Task :app:compileJava FAILED
MyClass.java:8: error: Can't translate a class java.lang.Boolean to the expected class java.lang.Boolean
@ToString(onlyExplicitlyIncluded = true)
^
1 error
I'm at a loss as to why this is happening. Does anyone have any ideas please?
Thanks.