Skip to content

Tag: lombok

Change SuperBuilder method with Lombok

I have a class as follows: This generates a builder with a default() method that is not usable due to it being a reserved word. Is there a way to change this behavior so the builder works? Answer Unfortunately, there is no nice way in this case. @Accessors affects getters, setters and builders, because this i…

Lombok returns null as a value of response

I’ve got a problem with my Api tests. When i’m trying to get data from api, lombok returns null as an acceptance value, but there are values with real numbers in api. Screenchot: https://prnt.sc/w98nt2 My DTO for the responce: My steps that extacts body and send post request public class PositionS…

Lombok with SuperBuilder

I have a Java project that uses Lombok ( a java library that automatically plugs into the editor and build tools ) and this one: but when I do the builder: I got this error: Answer Cannot reproduce. Check to make sure you’re on the latest lombok (currently, 1.18.16), and if that doesn’t solve the …