{"action":"created","comment":{"url":"https://api.github.com/repos/javaparser/javaparser/pulls/comments/92495114","pull_request_review_id":13012086,"id":92495114,"diff_hunk":"@@ -36,4 +39,12 @@ default VariableDeclarator getVariable(int i) {\n     }\n \n     N setVariables(NodeList<VariableDeclarator> variables);\n+\n+    public default Type getCommonType() {\n+        return getVariables().stream().map(v -> v.getType())","path":"javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithVariables.java","position":16,"original_position":16,"commit_id":"e7411ff4b4d50a09e730a91a44567112c1d87c12","original_commit_id":"508a358b00d766b3b8f7b5ffd8f3589d896d8458","user":{"login":"matozoid","id":55701,"avatar_url":"https://avatars.githubusercontent.com/u/55701?v=3","gravatar_id":"","url":"https://api.github.com/users/matozoid","html_url":"https://github.com/matozoid","followers_url":"https://api.github.com/users/matozoid/followers","following_url":"https://api.github.com/users/matozoid/following{/other_user}","gists_url":"https://api.github.com/users/matozoid/gists{/gist_id}","starred_url":"https://api.github.com/users/matozoid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matozoid/subscriptions","organizations_url":"https://api.github.com/users/matozoid/orgs","repos_url":"https://api.github.com/users/matozoid/repos","events_url":"https://api.github.com/users/matozoid/events{/privacy}","received_events_url":"https://api.github.com/users/matozoid/received_events","type":"User","site_admin":false},"body":"Oh hey, the merged getCommonType and yours are not the same. Mine only returns the type of the variables if it is the same for each one. What shall we do about naming?\r\n\r\nThe thing you are describing has no specific name in the JLS, as far as I know. ","created_at":"2016-12-14T21:39:52Z","updated_at":"2016-12-14T21:39:52Z","html_url":"https://github.com/javaparser/javaparser/pull/637#discussion_r92495114","pull_request_url":"https://api.github.com/repos/javaparser/javaparser/pulls/637","_links":{"self":{"href":"https://api.github.com/repos/javaparser/javaparser/pulls/comments/92495114"},"html":{"href":"https://github.com/javaparser/javaparser/pull/637#discussion_r92495114"},"pull_request":{"href":"https://api.github.com/repos/javaparser/javaparser/pulls/637"}}},"pull_request":{"url":"https://api.github.com/repos/javaparser/javaparser/pulls/637","id":98004342,"html_url":"https://github.com/javaparser/javaparser/pull/637","diff_url":"https://github.com/javaparser/javaparser/pull/637.diff","patch_url":"https://github.com/javaparser/javaparser/pull/637.patch","issue_url":"https://api.github.com/repos/javaparser/javaparser/issues/637","number":637,"state":"open","locked":false,"title":"Issue632: pretty printing array brackets using common type","user":{"login":"ftomassetti","id":439078,"avatar_url":"https://avatars.githubusercontent.com/u/439078?v=3","gravatar_id":"","url":"https://api.github.com/users/ftomassetti","html_url":"https://github.com/ftomassetti","followers_url":"https://api.github.com/users/ftomassetti/followers","following_url":"https://api.github.com/users/ftomassetti/following{/other_user}","gists_url":"https://api.github.com/users/ftomassetti/gists{/gist_id}","starred_url":"https://api.github.com/users/ftomassetti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ftomassetti/subscriptions","organizations_url":"https://api.github.com/users/ftomassetti/orgs","repos_url":"https://api.github.com/users/ftomassetti/repos","events_url":"https://api.github.com/users/ftomassetti/events{/privacy}","received_events_url":"https://api.github.com/users/ftomassetti/received_events","type":"User","site_admin":false},"body":"See #632 ","created_at":"2016-12-14T18:03:00Z","updated_at":"2016-12-14T21:39:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ff6ef57039034365bed042c3408fafddde1b17a1","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/javaparser/javaparser/pulls/637/commits","review_comments_url":"https://api.github.com/repos/javaparser/javaparser/pulls/637/comments","review_comment_url":"https://api.github.com/repos/javaparser/javaparser/pulls/comments{/number}","comments_url":"https://api.github.com/repos/javaparser/javaparser/issues/637/comments","statuses_url":"https://api.github.com/repos/javaparser/javaparser/statuses/e7411ff4b4d50a09e730a91a44567112c1d87c12","head":{"label":"ftomassetti:issue632","ref":"issue632","sha":"e7411ff4b4d50a09e730a91a44567112c1d87c12","user":{"login":"ftomassetti","id":439078,"avatar_url":"https://avatars.githubusercontent.com/u/439078?v=3","gravatar_id":"","url":"https://api.github.com/users/ftomassetti","html_url":"https://github.com/ftomassetti","followers_url":"https://api.github.com/users/ftomassetti/followers","following_url":"https://api.github.com/users/ftomassetti/following{/other_user}","gists_url":"https://api.github.com/users/ftomassetti/gists{/gist_id}","starred_url":"https://api.github.com/users/ftomassetti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ftomassetti/subscriptions","organizations_url":"https://api.github.com/users/ftomassetti/orgs","repos_url":"https://api.github.com/users/ftomassetti/repos","events_url":"https://api.github.com/users/ftomassetti/events{/privacy}","received_events_url":"https://api.github.com/users/ftomassetti/received_events","type":"User","site_admin":false},"repo":{"id":13719157,"name":"javaparser","full_name":"ftomassetti/javaparser","owner":{"login":"ftomassetti","id":439078,"avatar_url":"https://avatars.githubusercontent.com/u/439078?v=3","gravatar_id":"","url":"https://api.github.com/users/ftomassetti","html_url":"https://github.com/ftomassetti","followers_url":"https://api.github.com/users/ftomassetti/followers","following_url":"https://api.github.com/users/ftomassetti/following{/other_user}","gists_url":"https://api.github.com/users/ftomassetti/gists{/gist_id}","starred_url":"https://api.github.com/users/ftomassetti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ftomassetti/subscriptions","organizations_url":"https://api.github.com/users/ftomassetti/orgs","repos_url":"https://api.github.com/users/ftomassetti/repos","events_url":"https://api.github.com/users/ftomassetti/events{/privacy}","received_events_url":"https://api.github.com/users/ftomassetti/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ftomassetti/javaparser","description":"A clone of the javaparser project, since that seemed dead. All submitted patches are accepted.","fork":true,"url":"https://api.github.com/repos/ftomassetti/javaparser","forks_url":"https://api.github.com/repos/ftomassetti/javaparser/forks","keys_url":"https://api.github.com/repos/ftomassetti/javaparser/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ftomassetti/javaparser/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ftomassetti/javaparser/teams","hooks_url":"https://api.github.com/repos/ftomassetti/javaparser/hooks","issue_events_url":"https://api.github.com/repos/ftomassetti/javaparser/issues/events{/number}","events_url":"https://api.github.com/repos/ftomassetti/javaparser/events","assignees_url":"https://api.github.com/repos/ftomassetti/javaparser/assignees{/user}","branches_url":"https://api.github.com/repos/ftomassetti/javaparser/branches{/branch}","tags_url":"https://api.github.com/repos/ftomassetti/javaparser/tags","blobs_url":"https://api.github.com/repos/ftomassetti/javaparser/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ftomassetti/javaparser/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ftomassetti/javaparser/git/refs{/sha}","trees_url":"https://api.github.com/repos/ftomassetti/javaparser/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ftomassetti/javaparser/statuses/{sha}","languages_url":"https://api.github.com/repos/ftomassetti/javaparser/languages","stargazers_url":"https://api.github.com/repos/ftomassetti/javaparser/stargazers","contributors_url":"https://api.github.com/repos/ftomassetti/javaparser/contributors","subscribers_url":"https://api.github.com/repos/ftomassetti/javaparser/subscribers","subscription_url":"https://api.github.com/repos/ftomassetti/javaparser/subscription","commits_url":"https://api.github.com/repos/ftomassetti/javaparser/commits{/sha}","git_commits_url":"https://api.github.com/repos/ftomassetti/javaparser/git/commits{/sha}","comments_url":"https://api.github.com/repos/ftomassetti/javaparser/comments{/number}","issue_comment_url":"https://api.github.com/repos/ftomassetti/javaparser/issues/comments{/number}","contents_url":"https://api.github.com/repos/ftomassetti/javaparser/contents/{+path}","compare_url":"https://api.github.com/repos/ftomassetti/javaparser/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ftomassetti/javaparser/merges","archive_url":"https://api.github.com/repos/ftomassetti/javaparser/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ftomassetti/javaparser/downloads","issues_url":"https://api.github.com/repos/ftomassetti/javaparser/issues{/number}","pulls_url":"https://api.github.com/repos/ftomassetti/javaparser/pulls{/number}","milestones_url":"https://api.github.com/repos/ftomassetti/javaparser/milestones{/number}","notifications_url":"https://api.github.com/repos/ftomassetti/javaparser/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ftomassetti/javaparser/labels{/name}","releases_url":"https://api.github.com/repos/ftomassetti/javaparser/releases{/id}","deployments_url":"https://api.github.com/repos/ftomassetti/javaparser/deployments","created_at":"2013-10-20T13:03:51Z","updated_at":"2015-09-03T22:44:26Z","pushed_at":"2016-12-14T20:15:54Z","git_url":"git://github.com/ftomassetti/javaparser.git","ssh_url":"git@github.com:ftomassetti/javaparser.git","clone_url":"https://github.com/ftomassetti/javaparser.git","svn_url":"https://github.com/ftomassetti/javaparser","homepage":"http://code.google.com/p/javaparser/","size":3578,"stargazers_count":3,"watchers_count":3,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2,"mirror_url":null,"open_issues_count":3,"forks":2,"open_issues":3,"watchers":3,"default_branch":"master"}},"base":{"label":"javaparser:master","ref":"master","sha":"5978696e248c0d79525121f88be0cb19c8747e4d","user":{"login":"javaparser","id":9988471,"avatar_url":"https://avatars.githubusercontent.com/u/9988471?v=3","gravatar_id":"","url":"https://api.github.com/users/javaparser","html_url":"https://github.com/javaparser","followers_url":"https://api.github.com/users/javaparser/followers","following_url":"https://api.github.com/users/javaparser/following{/other_user}","gists_url":"https://api.github.com/users/javaparser/gists{/gist_id}","starred_url":"https://api.github.com/users/javaparser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javaparser/subscriptions","organizations_url":"https://api.github.com/users/javaparser/orgs","repos_url":"https://api.github.com/users/javaparser/repos","events_url":"https://api.github.com/users/javaparser/events{/privacy}","received_events_url":"https://api.github.com/users/javaparser/received_events","type":"Organization","site_admin":false},"repo":{"id":2675355,"name":"javaparser","full_name":"javaparser/javaparser","owner":{"login":"javaparser","id":9988471,"avatar_url":"https://avatars.githubusercontent.com/u/9988471?v=3","gravatar_id":"","url":"https://api.github.com/users/javaparser","html_url":"https://github.com/javaparser","followers_url":"https://api.github.com/users/javaparser/followers","following_url":"https://api.github.com/users/javaparser/following{/other_user}","gists_url":"https://api.github.com/users/javaparser/gists{/gist_id}","starred_url":"https://api.github.com/users/javaparser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javaparser/subscriptions","organizations_url":"https://api.github.com/users/javaparser/orgs","repos_url":"https://api.github.com/users/javaparser/repos","events_url":"https://api.github.com/users/javaparser/events{/privacy}","received_events_url":"https://api.github.com/users/javaparser/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/javaparser/javaparser","description":" Java 1.8 Parser and Abstract Syntax Tree for Java –","fork":false,"url":"https://api.github.com/repos/javaparser/javaparser","forks_url":"https://api.github.com/repos/javaparser/javaparser/forks","keys_url":"https://api.github.com/repos/javaparser/javaparser/keys{/key_id}","collaborators_url":"https://api.github.com/repos/javaparser/javaparser/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/javaparser/javaparser/teams","hooks_url":"https://api.github.com/repos/javaparser/javaparser/hooks","issue_events_url":"https://api.github.com/repos/javaparser/javaparser/issues/events{/number}","events_url":"https://api.github.com/repos/javaparser/javaparser/events","assignees_url":"https://api.github.com/repos/javaparser/javaparser/assignees{/user}","branches_url":"https://api.github.com/repos/javaparser/javaparser/branches{/branch}","tags_url":"https://api.github.com/repos/javaparser/javaparser/tags","blobs_url":"https://api.github.com/repos/javaparser/javaparser/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/javaparser/javaparser/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/javaparser/javaparser/git/refs{/sha}","trees_url":"https://api.github.com/repos/javaparser/javaparser/git/trees{/sha}","statuses_url":"https://api.github.com/repos/javaparser/javaparser/statuses/{sha}","languages_url":"https://api.github.com/repos/javaparser/javaparser/languages","stargazers_url":"https://api.github.com/repos/javaparser/javaparser/stargazers","contributors_url":"https://api.github.com/repos/javaparser/javaparser/contributors","subscribers_url":"https://api.github.com/repos/javaparser/javaparser/subscribers","subscription_url":"https://api.github.com/repos/javaparser/javaparser/subscription","commits_url":"https://api.github.com/repos/javaparser/javaparser/commits{/sha}","git_commits_url":"https://api.github.com/repos/javaparser/javaparser/git/commits{/sha}","comments_url":"https://api.github.com/repos/javaparser/javaparser/comments{/number}","issue_comment_url":"https://api.github.com/repos/javaparser/javaparser/issues/comments{/number}","contents_url":"https://api.github.com/repos/javaparser/javaparser/contents/{+path}","compare_url":"https://api.github.com/repos/javaparser/javaparser/compare/{base}...{head}","merges_url":"https://api.github.com/repos/javaparser/javaparser/merges","archive_url":"https://api.github.com/repos/javaparser/javaparser/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/javaparser/javaparser/downloads","issues_url":"https://api.github.com/repos/javaparser/javaparser/issues{/number}","pulls_url":"https://api.github.com/repos/javaparser/javaparser/pulls{/number}","milestones_url":"https://api.github.com/repos/javaparser/javaparser/milestones{/number}","notifications_url":"https://api.github.com/repos/javaparser/javaparser/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/javaparser/javaparser/labels{/name}","releases_url":"https://api.github.com/repos/javaparser/javaparser/releases{/id}","deployments_url":"https://api.github.com/repos/javaparser/javaparser/deployments","created_at":"2011-10-30T14:03:44Z","updated_at":"2016-12-14T11:53:26Z","pushed_at":"2016-12-14T21:32:35Z","git_url":"git://github.com/javaparser/javaparser.git","ssh_url":"git@github.com:javaparser/javaparser.git","clone_url":"https://github.com/javaparser/javaparser.git","svn_url":"https://github.com/javaparser/javaparser","homepage":"http://javaparser.org","size":3338,"stargazers_count":816,"watchers_count":816,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":231,"mirror_url":null,"open_issues_count":75,"forks":231,"open_issues":75,"watchers":816,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/javaparser/javaparser/pulls/637"},"html":{"href":"https://github.com/javaparser/javaparser/pull/637"},"issue":{"href":"https://api.github.com/repos/javaparser/javaparser/issues/637"},"comments":{"href":"https://api.github.com/repos/javaparser/javaparser/issues/637/comments"},"review_comments":{"href":"https://api.github.com/repos/javaparser/javaparser/pulls/637/comments"},"review_comment":{"href":"https://api.github.com/repos/javaparser/javaparser/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/javaparser/javaparser/pulls/637/commits"},"statuses":{"href":"https://api.github.com/repos/javaparser/javaparser/statuses/e7411ff4b4d50a09e730a91a44567112c1d87c12"}}}}
{"actor":{"display_login":"matozoid"}}