{"action":"closed","issue":{"url":"https://api.github.com/repos/immutables/immutables/issues/237","labels_url":"https://api.github.com/repos/immutables/immutables/issues/237/labels{/name}","comments_url":"https://api.github.com/repos/immutables/immutables/issues/237/comments","events_url":"https://api.github.com/repos/immutables/immutables/issues/237/events","html_url":"https://github.com/immutables/immutables/issues/237","id":126713245,"number":237,"title":"Take parameters in .builder()","user":{"login":"rgabbard-bbn","id":7139661,"avatar_url":"https://avatars.githubusercontent.com/u/7139661?v=3","gravatar_id":"","url":"https://api.github.com/users/rgabbard-bbn","html_url":"https://github.com/rgabbard-bbn","followers_url":"https://api.github.com/users/rgabbard-bbn/followers","following_url":"https://api.github.com/users/rgabbard-bbn/following{/other_user}","gists_url":"https://api.github.com/users/rgabbard-bbn/gists{/gist_id}","starred_url":"https://api.github.com/users/rgabbard-bbn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rgabbard-bbn/subscriptions","organizations_url":"https://api.github.com/users/rgabbard-bbn/orgs","repos_url":"https://api.github.com/users/rgabbard-bbn/repos","events_url":"https://api.github.com/users/rgabbard-bbn/events{/privacy}","received_events_url":"https://api.github.com/users/rgabbard-bbn/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/immutables/immutables/labels/completed","name":"completed","color":"006b75"},{"url":"https://api.github.com/repos/immutables/immutables/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/immutables/immutables/milestones/22","html_url":"https://github.com/immutables/immutables/milestones/2.1.8","labels_url":"https://api.github.com/repos/immutables/immutables/milestones/22/labels","id":1505831,"number":22,"title":"2.1.8","description":null,"creator":{"login":"elucash","id":1692611,"avatar_url":"https://avatars.githubusercontent.com/u/1692611?v=3","gravatar_id":"","url":"https://api.github.com/users/elucash","html_url":"https://github.com/elucash","followers_url":"https://api.github.com/users/elucash/followers","following_url":"https://api.github.com/users/elucash/following{/other_user}","gists_url":"https://api.github.com/users/elucash/gists{/gist_id}","starred_url":"https://api.github.com/users/elucash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elucash/subscriptions","organizations_url":"https://api.github.com/users/elucash/orgs","repos_url":"https://api.github.com/users/elucash/repos","events_url":"https://api.github.com/users/elucash/events{/privacy}","received_events_url":"https://api.github.com/users/elucash/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":6,"state":"open","created_at":"2016-01-13T21:53:12Z","updated_at":"2016-01-26T22:50:48Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2016-01-14T18:07:50Z","updated_at":"2016-01-26T22:50:48Z","closed_at":"2016-01-26T22:50:48Z","body":"It would be nice if same `@Parameter` fields used for `of` static factory methods were also be required as arguments of `.builder()`.  This prevents the case where the user forgets a required argument when using the builder but doesn't find out about it until runtime.  Example:\r\n\r\n```java\r\n@Value.Immutable(buildersRequireParams=true)\r\nabstract class Person {\r\n   @Parameter\r\n   public abstract String name();\r\n   public abstract Optional<String> jobTitle();\r\n }\r\n\r\nfinal MyClass fred = ImmutableMyClass.builder(\"Fred\").build();\r\nfinal MyClass sally = ImmutableMyClass.builder(\"Fred\").jobTitle(\"CEO\").build();\r\n// but not ImmutableMyClass.builder().jobTitle(\"CEO\")\r\n```\r\nThis would of course need to be turned on by a style."}}