{"action":"created","issue":{"url":"https://api.github.com/repos/google/guava/issues/2969","repository_url":"https://api.github.com/repos/google/guava","labels_url":"https://api.github.com/repos/google/guava/issues/2969/labels{/name}","comments_url":"https://api.github.com/repos/google/guava/issues/2969/comments","events_url":"https://api.github.com/repos/google/guava/issues/2969/events","html_url":"https://github.com/google/guava/issues/2969","id":265603214,"number":2969,"title":"Encourage the use of \"Convenience Factory Methods for Collections\" feature introduced in Java 9","user":{"login":"ineuwirth","id":6502015,"avatar_url":"https://avatars0.githubusercontent.com/u/6502015?v=4","gravatar_id":"","url":"https://api.github.com/users/ineuwirth","html_url":"https://github.com/ineuwirth","followers_url":"https://api.github.com/users/ineuwirth/followers","following_url":"https://api.github.com/users/ineuwirth/following{/other_user}","gists_url":"https://api.github.com/users/ineuwirth/gists{/gist_id}","starred_url":"https://api.github.com/users/ineuwirth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ineuwirth/subscriptions","organizations_url":"https://api.github.com/users/ineuwirth/orgs","repos_url":"https://api.github.com/users/ineuwirth/repos","events_url":"https://api.github.com/users/ineuwirth/events{/privacy}","received_events_url":"https://api.github.com/users/ineuwirth/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-10-15T20:55:29Z","updated_at":"2017-10-16T01:00:38Z","closed_at":null,"author_association":"NONE","body":"Java 9 has just introduced the \"Convenience Factory Methods for Collections\" feature. As `ImmutableList.of()` and similar methods in Guava, these factory methods create unmodifiable collections and prohibit null elements. The created collections are serializable if all of their elements are serializable.\r\nPlease find more details on http://openjdk.java.net/jeps/269.\r\n\r\nIt's worth considering to extend the Javadoc of the corresponding Guava classes (`ImmutableList`, `ImmutableMap` and `ImmutableSet`) like it happened in 3afc6e45c39504ece02d14f4a462f65acfa98652 to discourage using the old factory methods in favor of the Java 7 diamond syntax."},"comment":{"url":"https://api.github.com/repos/google/guava/issues/comments/336755567","html_url":"https://github.com/google/guava/issues/2969#issuecomment-336755567","issue_url":"https://api.github.com/repos/google/guava/issues/2969","id":336755567,"user":{"login":"kluever","id":2036304,"avatar_url":"https://avatars1.githubusercontent.com/u/2036304?v=4","gravatar_id":"","url":"https://api.github.com/users/kluever","html_url":"https://github.com/kluever","followers_url":"https://api.github.com/users/kluever/followers","following_url":"https://api.github.com/users/kluever/following{/other_user}","gists_url":"https://api.github.com/users/kluever/gists{/gist_id}","starred_url":"https://api.github.com/users/kluever/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kluever/subscriptions","organizations_url":"https://api.github.com/users/kluever/orgs","repos_url":"https://api.github.com/users/kluever/repos","events_url":"https://api.github.com/users/kluever/events{/privacy}","received_events_url":"https://api.github.com/users/kluever/received_events","type":"User","site_admin":false},"created_at":"2017-10-16T01:00:38Z","updated_at":"2017-10-16T01:00:38Z","author_association":"MEMBER","body":"+1 to @ooxi 's comment. It's possible that we may want to mention the new convenience factory methods, but we won't discourage the use of `ImmutableList`, etc."}}
{"actor":{"display_login":"kluever"}}