mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 14:17:48 +00:00
ecj: fix duplicate jackson annotation copying when generating setter
This commit is contained in:
1 parent
2927eff997
commit
0cc5e054a3
4 files changed
+188
-13
No files matched your search
@@ -0,0 +1,12 @@
|
||||
//CONF: lombok.copyJacksonAnnotationsToAccessors = true
|
||||
//version 8: Jackson deps are at least Java7+.
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@Data public class JacksonJsonProperty3 {
|
||||
@JsonProperty("a") String propertyOne;
|
||||
@JsonProperty("b") int propertyTwo;
|
||||
Map<String, Object> additional = new HashMap<>();
|
||||
}
|
||||
Reference in new issue
Block a user