{"action":"created","comment":{"url":"https://api.github.com/repos/amplab/tachyon/pulls/comments/42897766","id":42897766,"diff_hunk":"@@ -60,7 +60,10 @@ public Object getFieldValue(Pair o) {\n         return o.longValue();\n       }\n     };\n-    mSet = new IndexedSet<Pair>(mIntIndex, mLongIndex);\n+    // This warning cannot be avoided when passing generics into varargs\n+    @SuppressWarnings(\"unchecked\")\n+    IndexedSet<Pair> set = new IndexedSet<Pair>(mIntIndex, mLongIndex);\n+    mSet = set;","path":"common/src/test/java/tachyon/collections/IndexedSetTest.java","position":8,"original_position":8,"commit_id":"dec5f311d7827957ef89b3b4cc406b7552e77900","original_commit_id":"dec5f311d7827957ef89b3b4cc406b7552e77900","user":{"login":"calvinjia","id":2223813,"avatar_url":"https://avatars.githubusercontent.com/u/2223813?v=3","gravatar_id":"","url":"https://api.github.com/users/calvinjia","html_url":"https://github.com/calvinjia","followers_url":"https://api.github.com/users/calvinjia/followers","following_url":"https://api.github.com/users/calvinjia/following{/other_user}","gists_url":"https://api.github.com/users/calvinjia/gists{/gist_id}","starred_url":"https://api.github.com/users/calvinjia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calvinjia/subscriptions","organizations_url":"https://api.github.com/users/calvinjia/orgs","repos_url":"https://api.github.com/users/calvinjia/repos","events_url":"https://api.github.com/users/calvinjia/events{/privacy}","received_events_url":"https://api.github.com/users/calvinjia/received_events","type":"User","site_admin":false},"body":"We cannot directly set `mSet`?","created_at":"2015-10-23T18:25:14Z","updated_at":"2015-10-23T18:25:14Z","html_url":"https://github.com/amplab/tachyon/pull/1872#discussion_r42897766","pull_request_url":"https://api.github.com/repos/amplab/tachyon/pulls/1872","_links":{"self":{"href":"https://api.github.com/repos/amplab/tachyon/pulls/comments/42897766"},"html":{"href":"https://github.com/amplab/tachyon/pull/1872#discussion_r42897766"},"pull_request":{"href":"https://api.github.com/repos/amplab/tachyon/pulls/1872"}}},"pull_request":{"url":"https://api.github.com/repos/amplab/tachyon/pulls/1872","id":48545667,"html_url":"https://github.com/amplab/tachyon/pull/1872","diff_url":"https://github.com/amplab/tachyon/pull/1872.diff","patch_url":"https://github.com/amplab/tachyon/pull/1872.patch","issue_url":"https://api.github.com/repos/amplab/tachyon/issues/1872","number":1872,"state":"open","locked":false,"title":"[SMALLFIX] Avoid or suppress vararg generic warnings","user":{"login":"aaudiber","id":3455177,"avatar_url":"https://avatars.githubusercontent.com/u/3455177?v=3","gravatar_id":"","url":"https://api.github.com/users/aaudiber","html_url":"https://github.com/aaudiber","followers_url":"https://api.github.com/users/aaudiber/followers","following_url":"https://api.github.com/users/aaudiber/following{/other_user}","gists_url":"https://api.github.com/users/aaudiber/gists{/gist_id}","starred_url":"https://api.github.com/users/aaudiber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaudiber/subscriptions","organizations_url":"https://api.github.com/users/aaudiber/orgs","repos_url":"https://api.github.com/users/aaudiber/repos","events_url":"https://api.github.com/users/aaudiber/events{/privacy}","received_events_url":"https://api.github.com/users/aaudiber/received_events","type":"User","site_admin":false},"body":"Generics can't be safely passed into varargs because varargs creates an array of the generic type, and Java doesn't support generic arrays.\r\n\r\nhttp://www.angelikalanger.com/GenericsFAQ/FAQSections/ProgrammingIdioms.html#FAQ300","created_at":"2015-10-23T06:17:22Z","updated_at":"2015-10-23T18:25:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9af213fbc28d1ef2dbd59c0cf36918277400b867","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/amplab/tachyon/pulls/1872/commits","review_comments_url":"https://api.github.com/repos/amplab/tachyon/pulls/1872/comments","review_comment_url":"https://api.github.com/repos/amplab/tachyon/pulls/comments{/number}","comments_url":"https://api.github.com/repos/amplab/tachyon/issues/1872/comments","statuses_url":"https://api.github.com/repos/amplab/tachyon/statuses/dec5f311d7827957ef89b3b4cc406b7552e77900","head":{"label":"aaudiber:varargGenericWarnings","ref":"varargGenericWarnings","sha":"dec5f311d7827957ef89b3b4cc406b7552e77900","user":{"login":"aaudiber","id":3455177,"avatar_url":"https://avatars.githubusercontent.com/u/3455177?v=3","gravatar_id":"","url":"https://api.github.com/users/aaudiber","html_url":"https://github.com/aaudiber","followers_url":"https://api.github.com/users/aaudiber/followers","following_url":"https://api.github.com/users/aaudiber/following{/other_user}","gists_url":"https://api.github.com/users/aaudiber/gists{/gist_id}","starred_url":"https://api.github.com/users/aaudiber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaudiber/subscriptions","organizations_url":"https://api.github.com/users/aaudiber/orgs","repos_url":"https://api.github.com/users/aaudiber/repos","events_url":"https://api.github.com/users/aaudiber/events{/privacy}","received_events_url":"https://api.github.com/users/aaudiber/received_events","type":"User","site_admin":false},"repo":{"id":42785459,"name":"tachyon","full_name":"aaudiber/tachyon","owner":{"login":"aaudiber","id":3455177,"avatar_url":"https://avatars.githubusercontent.com/u/3455177?v=3","gravatar_id":"","url":"https://api.github.com/users/aaudiber","html_url":"https://github.com/aaudiber","followers_url":"https://api.github.com/users/aaudiber/followers","following_url":"https://api.github.com/users/aaudiber/following{/other_user}","gists_url":"https://api.github.com/users/aaudiber/gists{/gist_id}","starred_url":"https://api.github.com/users/aaudiber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaudiber/subscriptions","organizations_url":"https://api.github.com/users/aaudiber/orgs","repos_url":"https://api.github.com/users/aaudiber/repos","events_url":"https://api.github.com/users/aaudiber/events{/privacy}","received_events_url":"https://api.github.com/users/aaudiber/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aaudiber/tachyon","description":"Memory Centric Reliable Distributed Storage","fork":true,"url":"https://api.github.com/repos/aaudiber/tachyon","forks_url":"https://api.github.com/repos/aaudiber/tachyon/forks","keys_url":"https://api.github.com/repos/aaudiber/tachyon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aaudiber/tachyon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aaudiber/tachyon/teams","hooks_url":"https://api.github.com/repos/aaudiber/tachyon/hooks","issue_events_url":"https://api.github.com/repos/aaudiber/tachyon/issues/events{/number}","events_url":"https://api.github.com/repos/aaudiber/tachyon/events","assignees_url":"https://api.github.com/repos/aaudiber/tachyon/assignees{/user}","branches_url":"https://api.github.com/repos/aaudiber/tachyon/branches{/branch}","tags_url":"https://api.github.com/repos/aaudiber/tachyon/tags","blobs_url":"https://api.github.com/repos/aaudiber/tachyon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aaudiber/tachyon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aaudiber/tachyon/git/refs{/sha}","trees_url":"https://api.github.com/repos/aaudiber/tachyon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aaudiber/tachyon/statuses/{sha}","languages_url":"https://api.github.com/repos/aaudiber/tachyon/languages","stargazers_url":"https://api.github.com/repos/aaudiber/tachyon/stargazers","contributors_url":"https://api.github.com/repos/aaudiber/tachyon/contributors","subscribers_url":"https://api.github.com/repos/aaudiber/tachyon/subscribers","subscription_url":"https://api.github.com/repos/aaudiber/tachyon/subscription","commits_url":"https://api.github.com/repos/aaudiber/tachyon/commits{/sha}","git_commits_url":"https://api.github.com/repos/aaudiber/tachyon/git/commits{/sha}","comments_url":"https://api.github.com/repos/aaudiber/tachyon/comments{/number}","issue_comment_url":"https://api.github.com/repos/aaudiber/tachyon/issues/comments{/number}","contents_url":"https://api.github.com/repos/aaudiber/tachyon/contents/{+path}","compare_url":"https://api.github.com/repos/aaudiber/tachyon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aaudiber/tachyon/merges","archive_url":"https://api.github.com/repos/aaudiber/tachyon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aaudiber/tachyon/downloads","issues_url":"https://api.github.com/repos/aaudiber/tachyon/issues{/number}","pulls_url":"https://api.github.com/repos/aaudiber/tachyon/pulls{/number}","milestones_url":"https://api.github.com/repos/aaudiber/tachyon/milestones{/number}","notifications_url":"https://api.github.com/repos/aaudiber/tachyon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aaudiber/tachyon/labels{/name}","releases_url":"https://api.github.com/repos/aaudiber/tachyon/releases{/id}","created_at":"2015-09-19T18:48:47Z","updated_at":"2015-09-19T18:48:49Z","pushed_at":"2015-10-23T17:22:06Z","git_url":"git://github.com/aaudiber/tachyon.git","ssh_url":"git@github.com:aaudiber/tachyon.git","clone_url":"https://github.com/aaudiber/tachyon.git","svn_url":"https://github.com/aaudiber/tachyon","homepage":"http://tachyon-project.org","size":27209,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"amplab:master","ref":"master","sha":"29cc667856de25248e3eb4e10fb755ee67f35099","user":{"login":"amplab","id":1438454,"avatar_url":"https://avatars.githubusercontent.com/u/1438454?v=3","gravatar_id":"","url":"https://api.github.com/users/amplab","html_url":"https://github.com/amplab","followers_url":"https://api.github.com/users/amplab/followers","following_url":"https://api.github.com/users/amplab/following{/other_user}","gists_url":"https://api.github.com/users/amplab/gists{/gist_id}","starred_url":"https://api.github.com/users/amplab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amplab/subscriptions","organizations_url":"https://api.github.com/users/amplab/orgs","repos_url":"https://api.github.com/users/amplab/repos","events_url":"https://api.github.com/users/amplab/events{/privacy}","received_events_url":"https://api.github.com/users/amplab/received_events","type":"Organization","site_admin":false},"repo":{"id":7276954,"name":"tachyon","full_name":"amplab/tachyon","owner":{"login":"amplab","id":1438454,"avatar_url":"https://avatars.githubusercontent.com/u/1438454?v=3","gravatar_id":"","url":"https://api.github.com/users/amplab","html_url":"https://github.com/amplab","followers_url":"https://api.github.com/users/amplab/followers","following_url":"https://api.github.com/users/amplab/following{/other_user}","gists_url":"https://api.github.com/users/amplab/gists{/gist_id}","starred_url":"https://api.github.com/users/amplab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amplab/subscriptions","organizations_url":"https://api.github.com/users/amplab/orgs","repos_url":"https://api.github.com/users/amplab/repos","events_url":"https://api.github.com/users/amplab/events{/privacy}","received_events_url":"https://api.github.com/users/amplab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/amplab/tachyon","description":"Memory Centric Reliable Distributed Storage","fork":false,"url":"https://api.github.com/repos/amplab/tachyon","forks_url":"https://api.github.com/repos/amplab/tachyon/forks","keys_url":"https://api.github.com/repos/amplab/tachyon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/amplab/tachyon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/amplab/tachyon/teams","hooks_url":"https://api.github.com/repos/amplab/tachyon/hooks","issue_events_url":"https://api.github.com/repos/amplab/tachyon/issues/events{/number}","events_url":"https://api.github.com/repos/amplab/tachyon/events","assignees_url":"https://api.github.com/repos/amplab/tachyon/assignees{/user}","branches_url":"https://api.github.com/repos/amplab/tachyon/branches{/branch}","tags_url":"https://api.github.com/repos/amplab/tachyon/tags","blobs_url":"https://api.github.com/repos/amplab/tachyon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/amplab/tachyon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/amplab/tachyon/git/refs{/sha}","trees_url":"https://api.github.com/repos/amplab/tachyon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/amplab/tachyon/statuses/{sha}","languages_url":"https://api.github.com/repos/amplab/tachyon/languages","stargazers_url":"https://api.github.com/repos/amplab/tachyon/stargazers","contributors_url":"https://api.github.com/repos/amplab/tachyon/contributors","subscribers_url":"https://api.github.com/repos/amplab/tachyon/subscribers","subscription_url":"https://api.github.com/repos/amplab/tachyon/subscription","commits_url":"https://api.github.com/repos/amplab/tachyon/commits{/sha}","git_commits_url":"https://api.github.com/repos/amplab/tachyon/git/commits{/sha}","comments_url":"https://api.github.com/repos/amplab/tachyon/comments{/number}","issue_comment_url":"https://api.github.com/repos/amplab/tachyon/issues/comments{/number}","contents_url":"https://api.github.com/repos/amplab/tachyon/contents/{+path}","compare_url":"https://api.github.com/repos/amplab/tachyon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/amplab/tachyon/merges","archive_url":"https://api.github.com/repos/amplab/tachyon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/amplab/tachyon/downloads","issues_url":"https://api.github.com/repos/amplab/tachyon/issues{/number}","pulls_url":"https://api.github.com/repos/amplab/tachyon/pulls{/number}","milestones_url":"https://api.github.com/repos/amplab/tachyon/milestones{/number}","notifications_url":"https://api.github.com/repos/amplab/tachyon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/amplab/tachyon/labels{/name}","releases_url":"https://api.github.com/repos/amplab/tachyon/releases{/id}","created_at":"2012-12-21T17:43:46Z","updated_at":"2015-10-23T17:03:07Z","pushed_at":"2015-10-23T18:05:49Z","git_url":"git://github.com/amplab/tachyon.git","ssh_url":"git@github.com:amplab/tachyon.git","clone_url":"https://github.com/amplab/tachyon.git","svn_url":"https://github.com/amplab/tachyon","homepage":"http://tachyon-project.org","size":57210,"stargazers_count":1660,"watchers_count":1660,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":660,"mirror_url":null,"open_issues_count":28,"forks":660,"open_issues":28,"watchers":1660,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/amplab/tachyon/pulls/1872"},"html":{"href":"https://github.com/amplab/tachyon/pull/1872"},"issue":{"href":"https://api.github.com/repos/amplab/tachyon/issues/1872"},"comments":{"href":"https://api.github.com/repos/amplab/tachyon/issues/1872/comments"},"review_comments":{"href":"https://api.github.com/repos/amplab/tachyon/pulls/1872/comments"},"review_comment":{"href":"https://api.github.com/repos/amplab/tachyon/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/amplab/tachyon/pulls/1872/commits"},"statuses":{"href":"https://api.github.com/repos/amplab/tachyon/statuses/dec5f311d7827957ef89b3b4cc406b7552e77900"}}}}