{"action":"created","issue":{"url":"https://api.github.com/repos/rzwitserloot/lombok/issues/1424","repository_url":"https://api.github.com/repos/rzwitserloot/lombok","labels_url":"https://api.github.com/repos/rzwitserloot/lombok/issues/1424/labels{/name}","comments_url":"https://api.github.com/repos/rzwitserloot/lombok/issues/1424/comments","events_url":"https://api.github.com/repos/rzwitserloot/lombok/issues/1424/events","html_url":"https://github.com/rzwitserloot/lombok/issues/1424","id":238698928,"number":1424,"title":"Builder.Default changes NoArgConstrcutor behavior","user":{"login":"scottmboring","id":1578345,"avatar_url":"https://avatars3.githubusercontent.com/u/1578345?v=3","gravatar_id":"","url":"https://api.github.com/users/scottmboring","html_url":"https://github.com/scottmboring","followers_url":"https://api.github.com/users/scottmboring/followers","following_url":"https://api.github.com/users/scottmboring/following{/other_user}","gists_url":"https://api.github.com/users/scottmboring/gists{/gist_id}","starred_url":"https://api.github.com/users/scottmboring/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottmboring/subscriptions","organizations_url":"https://api.github.com/users/scottmboring/orgs","repos_url":"https://api.github.com/users/scottmboring/repos","events_url":"https://api.github.com/users/scottmboring/events{/privacy}","received_events_url":"https://api.github.com/users/scottmboring/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-06-26T23:37:49Z","updated_at":"2017-06-29T20:34:37Z","closed_at":null,"body":"The Build.Default annotation enables default values when using builder, but those default values are ignored with using the NoArgConstructor.\r\n\r\n    @Builder\r\n    @NoArgsConstructor\r\n    @AllArgsConstructor\r\n    public static class Model {\r\n        @Builder.Default\r\n        private String value1 = \"testA\";\r\n        private String value2 = \"testB\";\r\n    }\r\n\r\n    @Test\r\n    public void test() {\r\n        final Model model1 = new Model();\r\n        assertNull(model1.value1); // FIXME should not be null\r\n        assertEquals(model1.value2, \"testB\"); // Correct\r\n        final Model model2 = Model.builder().build();\r\n        assertEquals(model2.value1, \"testA\"); // Correct\r\n        assertNull(model2.value2); // Correct\r\n    }"},"comment":{"url":"https://api.github.com/repos/rzwitserloot/lombok/issues/comments/312096658","html_url":"https://github.com/rzwitserloot/lombok/issues/1424#issuecomment-312096658","issue_url":"https://api.github.com/repos/rzwitserloot/lombok/issues/1424","id":312096658,"user":{"login":"rspilker","id":93318,"avatar_url":"https://avatars0.githubusercontent.com/u/93318?v=3","gravatar_id":"","url":"https://api.github.com/users/rspilker","html_url":"https://github.com/rspilker","followers_url":"https://api.github.com/users/rspilker/followers","following_url":"https://api.github.com/users/rspilker/following{/other_user}","gists_url":"https://api.github.com/users/rspilker/gists{/gist_id}","starred_url":"https://api.github.com/users/rspilker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rspilker/subscriptions","organizations_url":"https://api.github.com/users/rspilker/orgs","repos_url":"https://api.github.com/users/rspilker/repos","events_url":"https://api.github.com/users/rspilker/events{/privacy}","received_events_url":"https://api.github.com/users/rspilker/received_events","type":"User","site_admin":false},"created_at":"2017-06-29T20:34:37Z","updated_at":"2017-06-29T20:34:37Z","body":"See also #1429"}}
{"actor":{"display_login":"rspilker"}}