{"action":"opened","issue":{"url":"https://api.github.com/repos/mebigfatguy/fb-contrib/issues/37","labels_url":"https://api.github.com/repos/mebigfatguy/fb-contrib/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/mebigfatguy/fb-contrib/issues/37/comments","events_url":"https://api.github.com/repos/mebigfatguy/fb-contrib/issues/37/events","html_url":"https://github.com/mebigfatguy/fb-contrib/issues/37","id":64086350,"number":37,"title":"Proposal: Unnecessary Collection Nesting Detector","user":{"login":"tpounds","id":195041,"avatar_url":"https://avatars.githubusercontent.com/u/195041?v=3","gravatar_id":"","url":"https://api.github.com/users/tpounds","html_url":"https://github.com/tpounds","followers_url":"https://api.github.com/users/tpounds/followers","following_url":"https://api.github.com/users/tpounds/following{/other_user}","gists_url":"https://api.github.com/users/tpounds/gists{/gist_id}","starred_url":"https://api.github.com/users/tpounds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tpounds/subscriptions","organizations_url":"https://api.github.com/users/tpounds/orgs","repos_url":"https://api.github.com/users/tpounds/repos","events_url":"https://api.github.com/users/tpounds/events{/privacy}","received_events_url":"https://api.github.com/users/tpounds/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-24T20:00:08Z","updated_at":"2015-03-24T20:00:08Z","closed_at":null,"body":"I noticed the following anti-pattern in some service code the other day. Arrays.asList(...) already creates a copy of the original array so nesting it inside an additional ArrayList is unnecessary.\r\n\r\n```java\r\nfinal List<...> valueList = new ArrayList<...>(Arrays.<...>asList(valueArray));\r\n```\r\n\r\nI'll take a crack at adding new detector for this bug but wanted to report it in case anyone wanted to get to it beforehand."}}