{"action":"created","comment":{"url":"https://api.github.com/repos/JakeWharton/butterknife/pulls/comments/33640151","id":33640151,"diff_hunk":"@@ -114,24 +115,14 @@ private ButterKnife() {\n     };\n \n     private static <T> T[] filterNull(T[] views) {\n-      int newSize = views.length;\n-      for (T view : views) {\n-        if (view == null) {\n-          newSize -= 1;\n-        }\n-      }\n-      if (newSize == views.length) {\n-        return views;\n-      }\n-      //noinspection unchecked\n-      T[] newViews = (T[]) new Object[newSize];\n-      int nextIndex = 0;\n-      for (T view : views) {\n+      int end = 0;\n+      for (int i = 0; i < views.length; i++) {\n+        T view = views[i];\n         if (view != null) {\n-          newViews[nextIndex++] = view;\n+          views[end++] = view;","path":"butterknife/src/main/java/butterknife/ButterKnife.java","position":30,"original_position":30,"commit_id":"37f3be71867e8e881076ae94dfddbe8f0a519c0e","original_commit_id":"37f3be71867e8e881076ae94dfddbe8f0a519c0e","user":{"login":"hzsweers","id":1361086,"avatar_url":"https://avatars.githubusercontent.com/u/1361086?v=3","gravatar_id":"","url":"https://api.github.com/users/hzsweers","html_url":"https://github.com/hzsweers","followers_url":"https://api.github.com/users/hzsweers/followers","following_url":"https://api.github.com/users/hzsweers/following{/other_user}","gists_url":"https://api.github.com/users/hzsweers/gists{/gist_id}","starred_url":"https://api.github.com/users/hzsweers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hzsweers/subscriptions","organizations_url":"https://api.github.com/users/hzsweers/orgs","repos_url":"https://api.github.com/users/hzsweers/repos","events_url":"https://api.github.com/users/hzsweers/events{/privacy}","received_events_url":"https://api.github.com/users/hzsweers/received_events","type":"User","site_admin":false},"body":"🎉","created_at":"2015-07-01T00:52:46Z","updated_at":"2015-07-01T00:52:46Z","html_url":"https://github.com/JakeWharton/butterknife/pull/288#discussion_r33640151","pull_request_url":"https://api.github.com/repos/JakeWharton/butterknife/pulls/288","_links":{"self":{"href":"https://api.github.com/repos/JakeWharton/butterknife/pulls/comments/33640151"},"html":{"href":"https://github.com/JakeWharton/butterknife/pull/288#discussion_r33640151"},"pull_request":{"href":"https://api.github.com/repos/JakeWharton/butterknife/pulls/288"}}},"pull_request":{"url":"https://api.github.com/repos/JakeWharton/butterknife/pulls/288","id":38932551,"html_url":"https://github.com/JakeWharton/butterknife/pull/288","diff_url":"https://github.com/JakeWharton/butterknife/pull/288.diff","patch_url":"https://github.com/JakeWharton/butterknife/pull/288.patch","issue_url":"https://api.github.com/repos/JakeWharton/butterknife/issues/288","number":288,"state":"closed","locked":false,"title":"Remove explicit array allocation by leaning on copy.","user":{"login":"JakeWharton","id":66577,"avatar_url":"https://avatars.githubusercontent.com/u/66577?v=3","gravatar_id":"","url":"https://api.github.com/users/JakeWharton","html_url":"https://github.com/JakeWharton","followers_url":"https://api.github.com/users/JakeWharton/followers","following_url":"https://api.github.com/users/JakeWharton/following{/other_user}","gists_url":"https://api.github.com/users/JakeWharton/gists{/gist_id}","starred_url":"https://api.github.com/users/JakeWharton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JakeWharton/subscriptions","organizations_url":"https://api.github.com/users/JakeWharton/orgs","repos_url":"https://api.github.com/users/JakeWharton/repos","events_url":"https://api.github.com/users/JakeWharton/events{/privacy}","received_events_url":"https://api.github.com/users/JakeWharton/received_events","type":"User","site_admin":false},"body":"Closes #287.","created_at":"2015-06-30T22:45:12Z","updated_at":"2015-07-01T00:52:46Z","closed_at":"2015-06-30T23:16:33Z","merged_at":"2015-06-30T23:16:33Z","merge_commit_sha":"6711eca36d3e118110f9c707b4678ff775335f75","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/JakeWharton/butterknife/pulls/288/commits","review_comments_url":"https://api.github.com/repos/JakeWharton/butterknife/pulls/288/comments","review_comment_url":"https://api.github.com/repos/JakeWharton/butterknife/pulls/comments{/number}","comments_url":"https://api.github.com/repos/JakeWharton/butterknife/issues/288/comments","statuses_url":"https://api.github.com/repos/JakeWharton/butterknife/statuses/37f3be71867e8e881076ae94dfddbe8f0a519c0e","head":{"label":"JakeWharton:jw/remove-array-allocation","ref":"jw/remove-array-allocation","sha":"37f3be71867e8e881076ae94dfddbe8f0a519c0e","user":{"login":"JakeWharton","id":66577,"avatar_url":"https://avatars.githubusercontent.com/u/66577?v=3","gravatar_id":"","url":"https://api.github.com/users/JakeWharton","html_url":"https://github.com/JakeWharton","followers_url":"https://api.github.com/users/JakeWharton/followers","following_url":"https://api.github.com/users/JakeWharton/following{/other_user}","gists_url":"https://api.github.com/users/JakeWharton/gists{/gist_id}","starred_url":"https://api.github.com/users/JakeWharton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JakeWharton/subscriptions","organizations_url":"https://api.github.com/users/JakeWharton/orgs","repos_url":"https://api.github.com/users/JakeWharton/repos","events_url":"https://api.github.com/users/JakeWharton/events{/privacy}","received_events_url":"https://api.github.com/users/JakeWharton/received_events","type":"User","site_admin":false},"repo":{"id":8575137,"name":"butterknife","full_name":"JakeWharton/butterknife","owner":{"login":"JakeWharton","id":66577,"avatar_url":"https://avatars.githubusercontent.com/u/66577?v=3","gravatar_id":"","url":"https://api.github.com/users/JakeWharton","html_url":"https://github.com/JakeWharton","followers_url":"https://api.github.com/users/JakeWharton/followers","following_url":"https://api.github.com/users/JakeWharton/following{/other_user}","gists_url":"https://api.github.com/users/JakeWharton/gists{/gist_id}","starred_url":"https://api.github.com/users/JakeWharton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JakeWharton/subscriptions","organizations_url":"https://api.github.com/users/JakeWharton/orgs","repos_url":"https://api.github.com/users/JakeWharton/repos","events_url":"https://api.github.com/users/JakeWharton/events{/privacy}","received_events_url":"https://api.github.com/users/JakeWharton/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JakeWharton/butterknife","description":"View \"injection\" library for Android.","fork":false,"url":"https://api.github.com/repos/JakeWharton/butterknife","forks_url":"https://api.github.com/repos/JakeWharton/butterknife/forks","keys_url":"https://api.github.com/repos/JakeWharton/butterknife/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JakeWharton/butterknife/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JakeWharton/butterknife/teams","hooks_url":"https://api.github.com/repos/JakeWharton/butterknife/hooks","issue_events_url":"https://api.github.com/repos/JakeWharton/butterknife/issues/events{/number}","events_url":"https://api.github.com/repos/JakeWharton/butterknife/events","assignees_url":"https://api.github.com/repos/JakeWharton/butterknife/assignees{/user}","branches_url":"https://api.github.com/repos/JakeWharton/butterknife/branches{/branch}","tags_url":"https://api.github.com/repos/JakeWharton/butterknife/tags","blobs_url":"https://api.github.com/repos/JakeWharton/butterknife/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JakeWharton/butterknife/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JakeWharton/butterknife/git/refs{/sha}","trees_url":"https://api.github.com/repos/JakeWharton/butterknife/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JakeWharton/butterknife/statuses/{sha}","languages_url":"https://api.github.com/repos/JakeWharton/butterknife/languages","stargazers_url":"https://api.github.com/repos/JakeWharton/butterknife/stargazers","contributors_url":"https://api.github.com/repos/JakeWharton/butterknife/contributors","subscribers_url":"https://api.github.com/repos/JakeWharton/butterknife/subscribers","subscription_url":"https://api.github.com/repos/JakeWharton/butterknife/subscription","commits_url":"https://api.github.com/repos/JakeWharton/butterknife/commits{/sha}","git_commits_url":"https://api.github.com/repos/JakeWharton/butterknife/git/commits{/sha}","comments_url":"https://api.github.com/repos/JakeWharton/butterknife/comments{/number}","issue_comment_url":"https://api.github.com/repos/JakeWharton/butterknife/issues/comments{/number}","contents_url":"https://api.github.com/repos/JakeWharton/butterknife/contents/{+path}","compare_url":"https://api.github.com/repos/JakeWharton/butterknife/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JakeWharton/butterknife/merges","archive_url":"https://api.github.com/repos/JakeWharton/butterknife/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JakeWharton/butterknife/downloads","issues_url":"https://api.github.com/repos/JakeWharton/butterknife/issues{/number}","pulls_url":"https://api.github.com/repos/JakeWharton/butterknife/pulls{/number}","milestones_url":"https://api.github.com/repos/JakeWharton/butterknife/milestones{/number}","notifications_url":"https://api.github.com/repos/JakeWharton/butterknife/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JakeWharton/butterknife/labels{/name}","releases_url":"https://api.github.com/repos/JakeWharton/butterknife/releases{/id}","created_at":"2013-03-05T08:18:59Z","updated_at":"2015-06-30T20:46:32Z","pushed_at":"2015-06-30T23:22:20Z","git_url":"git://github.com/JakeWharton/butterknife.git","ssh_url":"git@github.com:JakeWharton/butterknife.git","clone_url":"https://github.com/JakeWharton/butterknife.git","svn_url":"https://github.com/JakeWharton/butterknife","homepage":"http://jakewharton.github.io/butterknife/","size":4661,"stargazers_count":4256,"watchers_count":4256,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":867,"mirror_url":null,"open_issues_count":26,"forks":867,"open_issues":26,"watchers":4256,"default_branch":"master"}},"base":{"label":"JakeWharton:master","ref":"master","sha":"50336d8db77726f08bd0aefd99fb6c1822778d59","user":{"login":"JakeWharton","id":66577,"avatar_url":"https://avatars.githubusercontent.com/u/66577?v=3","gravatar_id":"","url":"https://api.github.com/users/JakeWharton","html_url":"https://github.com/JakeWharton","followers_url":"https://api.github.com/users/JakeWharton/followers","following_url":"https://api.github.com/users/JakeWharton/following{/other_user}","gists_url":"https://api.github.com/users/JakeWharton/gists{/gist_id}","starred_url":"https://api.github.com/users/JakeWharton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JakeWharton/subscriptions","organizations_url":"https://api.github.com/users/JakeWharton/orgs","repos_url":"https://api.github.com/users/JakeWharton/repos","events_url":"https://api.github.com/users/JakeWharton/events{/privacy}","received_events_url":"https://api.github.com/users/JakeWharton/received_events","type":"User","site_admin":false},"repo":{"id":8575137,"name":"butterknife","full_name":"JakeWharton/butterknife","owner":{"login":"JakeWharton","id":66577,"avatar_url":"https://avatars.githubusercontent.com/u/66577?v=3","gravatar_id":"","url":"https://api.github.com/users/JakeWharton","html_url":"https://github.com/JakeWharton","followers_url":"https://api.github.com/users/JakeWharton/followers","following_url":"https://api.github.com/users/JakeWharton/following{/other_user}","gists_url":"https://api.github.com/users/JakeWharton/gists{/gist_id}","starred_url":"https://api.github.com/users/JakeWharton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JakeWharton/subscriptions","organizations_url":"https://api.github.com/users/JakeWharton/orgs","repos_url":"https://api.github.com/users/JakeWharton/repos","events_url":"https://api.github.com/users/JakeWharton/events{/privacy}","received_events_url":"https://api.github.com/users/JakeWharton/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JakeWharton/butterknife","description":"View \"injection\" library for Android.","fork":false,"url":"https://api.github.com/repos/JakeWharton/butterknife","forks_url":"https://api.github.com/repos/JakeWharton/butterknife/forks","keys_url":"https://api.github.com/repos/JakeWharton/butterknife/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JakeWharton/butterknife/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JakeWharton/butterknife/teams","hooks_url":"https://api.github.com/repos/JakeWharton/butterknife/hooks","issue_events_url":"https://api.github.com/repos/JakeWharton/butterknife/issues/events{/number}","events_url":"https://api.github.com/repos/JakeWharton/butterknife/events","assignees_url":"https://api.github.com/repos/JakeWharton/butterknife/assignees{/user}","branches_url":"https://api.github.com/repos/JakeWharton/butterknife/branches{/branch}","tags_url":"https://api.github.com/repos/JakeWharton/butterknife/tags","blobs_url":"https://api.github.com/repos/JakeWharton/butterknife/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JakeWharton/butterknife/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JakeWharton/butterknife/git/refs{/sha}","trees_url":"https://api.github.com/repos/JakeWharton/butterknife/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JakeWharton/butterknife/statuses/{sha}","languages_url":"https://api.github.com/repos/JakeWharton/butterknife/languages","stargazers_url":"https://api.github.com/repos/JakeWharton/butterknife/stargazers","contributors_url":"https://api.github.com/repos/JakeWharton/butterknife/contributors","subscribers_url":"https://api.github.com/repos/JakeWharton/butterknife/subscribers","subscription_url":"https://api.github.com/repos/JakeWharton/butterknife/subscription","commits_url":"https://api.github.com/repos/JakeWharton/butterknife/commits{/sha}","git_commits_url":"https://api.github.com/repos/JakeWharton/butterknife/git/commits{/sha}","comments_url":"https://api.github.com/repos/JakeWharton/butterknife/comments{/number}","issue_comment_url":"https://api.github.com/repos/JakeWharton/butterknife/issues/comments{/number}","contents_url":"https://api.github.com/repos/JakeWharton/butterknife/contents/{+path}","compare_url":"https://api.github.com/repos/JakeWharton/butterknife/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JakeWharton/butterknife/merges","archive_url":"https://api.github.com/repos/JakeWharton/butterknife/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JakeWharton/butterknife/downloads","issues_url":"https://api.github.com/repos/JakeWharton/butterknife/issues{/number}","pulls_url":"https://api.github.com/repos/JakeWharton/butterknife/pulls{/number}","milestones_url":"https://api.github.com/repos/JakeWharton/butterknife/milestones{/number}","notifications_url":"https://api.github.com/repos/JakeWharton/butterknife/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JakeWharton/butterknife/labels{/name}","releases_url":"https://api.github.com/repos/JakeWharton/butterknife/releases{/id}","created_at":"2013-03-05T08:18:59Z","updated_at":"2015-06-30T20:46:32Z","pushed_at":"2015-06-30T23:22:20Z","git_url":"git://github.com/JakeWharton/butterknife.git","ssh_url":"git@github.com:JakeWharton/butterknife.git","clone_url":"https://github.com/JakeWharton/butterknife.git","svn_url":"https://github.com/JakeWharton/butterknife","homepage":"http://jakewharton.github.io/butterknife/","size":4661,"stargazers_count":4256,"watchers_count":4256,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":867,"mirror_url":null,"open_issues_count":26,"forks":867,"open_issues":26,"watchers":4256,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/JakeWharton/butterknife/pulls/288"},"html":{"href":"https://github.com/JakeWharton/butterknife/pull/288"},"issue":{"href":"https://api.github.com/repos/JakeWharton/butterknife/issues/288"},"comments":{"href":"https://api.github.com/repos/JakeWharton/butterknife/issues/288/comments"},"review_comments":{"href":"https://api.github.com/repos/JakeWharton/butterknife/pulls/288/comments"},"review_comment":{"href":"https://api.github.com/repos/JakeWharton/butterknife/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/JakeWharton/butterknife/pulls/288/commits"},"statuses":{"href":"https://api.github.com/repos/JakeWharton/butterknife/statuses/37f3be71867e8e881076ae94dfddbe8f0a519c0e"}}}}