{"action":"created","comment":{"url":"https://api.github.com/repos/INRIA/spoon/pulls/comments/71689674","id":71689674,"diff_hunk":"@@ -0,0 +1,306 @@\n+/**\n+ * Copyright (C) 2006-2016 INRIA and contributors\n+ * Spoon - http://spoon.gforge.inria.fr/\n+ *\n+ * This software is governed by the CeCILL-C License under French law and\n+ * abiding by the rules of distribution of free software. You can use, modify\n+ * and/or redistribute the software under the terms of the CeCILL-C license as\n+ * circulated by CEA, CNRS and INRIA at http://www.cecill.info.\n+ *\n+ * This program is distributed in the hope that it will be useful, but WITHOUT\n+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or\n+ * FITNESS FOR A PARTICULAR PURPOSE. See the CeCILL-C License for more details.\n+ *\n+ * The fact that you are presently reading this means that you have had\n+ * knowledge of the CeCILL-C license and that you accept its terms.\n+ */\n+package spoon.support.compiler.jdt;\n+\n+import org.eclipse.jdt.core.compiler.CharOperation;\n+import org.eclipse.jdt.internal.compiler.ast.Annotation;\n+import org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration;\n+import org.eclipse.jdt.internal.compiler.ast.ImportReference;\n+import org.eclipse.jdt.internal.compiler.ast.OperatorIds;\n+import org.eclipse.jdt.internal.compiler.ast.TypeDeclaration;\n+import org.eclipse.jdt.internal.compiler.classfmt.ClassFileConstants;\n+import org.eclipse.jdt.internal.compiler.lookup.AnnotationBinding;\n+import org.eclipse.jdt.internal.compiler.lookup.FieldBinding;\n+import org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding;\n+import org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding;\n+import org.eclipse.jdt.internal.compiler.lookup.TypeBinding;\n+import spoon.reflect.code.BinaryOperatorKind;\n+import spoon.reflect.code.UnaryOperatorKind;\n+import spoon.reflect.declaration.CtAnnotatedElementType;\n+import spoon.reflect.declaration.CtAnnotation;\n+import spoon.reflect.declaration.CtType;\n+import spoon.reflect.declaration.CtTypedElement;\n+import spoon.reflect.declaration.ModifierKind;\n+\n+import java.util.EnumSet;\n+import java.util.Set;\n+\n+class HelperJDTTreeBuilder {","path":"src/main/java/spoon/support/compiler/jdt/HelperJDTTreeBuilder.java","position":42,"original_position":42,"commit_id":"f73bd068a89d430e54a45e40e9cb8329ca945d6b","original_commit_id":"f73bd068a89d430e54a45e40e9cb8329ca945d6b","user":{"login":"monperrus","id":803666,"avatar_url":"https://avatars.githubusercontent.com/u/803666?v=3","gravatar_id":"","url":"https://api.github.com/users/monperrus","html_url":"https://github.com/monperrus","followers_url":"https://api.github.com/users/monperrus/followers","following_url":"https://api.github.com/users/monperrus/following{/other_user}","gists_url":"https://api.github.com/users/monperrus/gists{/gist_id}","starred_url":"https://api.github.com/users/monperrus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/monperrus/subscriptions","organizations_url":"https://api.github.com/users/monperrus/orgs","repos_url":"https://api.github.com/users/monperrus/repos","events_url":"https://api.github.com/users/monperrus/events{/privacy}","received_events_url":"https://api.github.com/users/monperrus/received_events","type":"User","site_admin":false},"body":"JDTTreeBuilderHelper","created_at":"2016-07-21T11:36:56Z","updated_at":"2016-07-21T11:36:56Z","html_url":"https://github.com/INRIA/spoon/pull/746#discussion_r71689674","pull_request_url":"https://api.github.com/repos/INRIA/spoon/pulls/746","_links":{"self":{"href":"https://api.github.com/repos/INRIA/spoon/pulls/comments/71689674"},"html":{"href":"https://github.com/INRIA/spoon/pull/746#discussion_r71689674"},"pull_request":{"href":"https://api.github.com/repos/INRIA/spoon/pulls/746"}}},"pull_request":{"url":"https://api.github.com/repos/INRIA/spoon/pulls/746","id":76433573,"html_url":"https://github.com/INRIA/spoon/pull/746","diff_url":"https://github.com/INRIA/spoon/pull/746.diff","patch_url":"https://github.com/INRIA/spoon/pull/746.patch","issue_url":"https://api.github.com/repos/INRIA/spoon/issues/746","number":746,"state":"open","locked":false,"title":"refactor: JDTTreeBuilder","user":{"login":"danglotb","id":3339185,"avatar_url":"https://avatars.githubusercontent.com/u/3339185?v=3","gravatar_id":"","url":"https://api.github.com/users/danglotb","html_url":"https://github.com/danglotb","followers_url":"https://api.github.com/users/danglotb/followers","following_url":"https://api.github.com/users/danglotb/following{/other_user}","gists_url":"https://api.github.com/users/danglotb/gists{/gist_id}","starred_url":"https://api.github.com/users/danglotb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danglotb/subscriptions","organizations_url":"https://api.github.com/users/danglotb/orgs","repos_url":"https://api.github.com/users/danglotb/repos","events_url":"https://api.github.com/users/danglotb/events{/privacy}","received_events_url":"https://api.github.com/users/danglotb/received_events","type":"User","site_admin":false},"body":"Split into multiple classes, remove unused method and fields for the sake of readability.","created_at":"2016-07-06T13:39:47Z","updated_at":"2016-07-21T11:36:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b15077edc28060ebe27eef1aedb6d4f5fe29d696","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/INRIA/spoon/pulls/746/commits","review_comments_url":"https://api.github.com/repos/INRIA/spoon/pulls/746/comments","review_comment_url":"https://api.github.com/repos/INRIA/spoon/pulls/comments{/number}","comments_url":"https://api.github.com/repos/INRIA/spoon/issues/746/comments","statuses_url":"https://api.github.com/repos/INRIA/spoon/statuses/f73bd068a89d430e54a45e40e9cb8329ca945d6b","head":{"label":"danglotb:refactor-jdttreebuilder","ref":"refactor-jdttreebuilder","sha":"f73bd068a89d430e54a45e40e9cb8329ca945d6b","user":{"login":"danglotb","id":3339185,"avatar_url":"https://avatars.githubusercontent.com/u/3339185?v=3","gravatar_id":"","url":"https://api.github.com/users/danglotb","html_url":"https://github.com/danglotb","followers_url":"https://api.github.com/users/danglotb/followers","following_url":"https://api.github.com/users/danglotb/following{/other_user}","gists_url":"https://api.github.com/users/danglotb/gists{/gist_id}","starred_url":"https://api.github.com/users/danglotb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danglotb/subscriptions","organizations_url":"https://api.github.com/users/danglotb/orgs","repos_url":"https://api.github.com/users/danglotb/repos","events_url":"https://api.github.com/users/danglotb/events{/privacy}","received_events_url":"https://api.github.com/users/danglotb/received_events","type":"User","site_admin":false},"repo":{"id":53040928,"name":"spoon","full_name":"danglotb/spoon","owner":{"login":"danglotb","id":3339185,"avatar_url":"https://avatars.githubusercontent.com/u/3339185?v=3","gravatar_id":"","url":"https://api.github.com/users/danglotb","html_url":"https://github.com/danglotb","followers_url":"https://api.github.com/users/danglotb/followers","following_url":"https://api.github.com/users/danglotb/following{/other_user}","gists_url":"https://api.github.com/users/danglotb/gists{/gist_id}","starred_url":"https://api.github.com/users/danglotb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danglotb/subscriptions","organizations_url":"https://api.github.com/users/danglotb/orgs","repos_url":"https://api.github.com/users/danglotb/repos","events_url":"https://api.github.com/users/danglotb/events{/privacy}","received_events_url":"https://api.github.com/users/danglotb/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/danglotb/spoon","description":"Spoon is a library for analyzing and transforming Java source code AST (Java 8 included) :beers: :sparkles:","fork":true,"url":"https://api.github.com/repos/danglotb/spoon","forks_url":"https://api.github.com/repos/danglotb/spoon/forks","keys_url":"https://api.github.com/repos/danglotb/spoon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/danglotb/spoon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/danglotb/spoon/teams","hooks_url":"https://api.github.com/repos/danglotb/spoon/hooks","issue_events_url":"https://api.github.com/repos/danglotb/spoon/issues/events{/number}","events_url":"https://api.github.com/repos/danglotb/spoon/events","assignees_url":"https://api.github.com/repos/danglotb/spoon/assignees{/user}","branches_url":"https://api.github.com/repos/danglotb/spoon/branches{/branch}","tags_url":"https://api.github.com/repos/danglotb/spoon/tags","blobs_url":"https://api.github.com/repos/danglotb/spoon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/danglotb/spoon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/danglotb/spoon/git/refs{/sha}","trees_url":"https://api.github.com/repos/danglotb/spoon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/danglotb/spoon/statuses/{sha}","languages_url":"https://api.github.com/repos/danglotb/spoon/languages","stargazers_url":"https://api.github.com/repos/danglotb/spoon/stargazers","contributors_url":"https://api.github.com/repos/danglotb/spoon/contributors","subscribers_url":"https://api.github.com/repos/danglotb/spoon/subscribers","subscription_url":"https://api.github.com/repos/danglotb/spoon/subscription","commits_url":"https://api.github.com/repos/danglotb/spoon/commits{/sha}","git_commits_url":"https://api.github.com/repos/danglotb/spoon/git/commits{/sha}","comments_url":"https://api.github.com/repos/danglotb/spoon/comments{/number}","issue_comment_url":"https://api.github.com/repos/danglotb/spoon/issues/comments{/number}","contents_url":"https://api.github.com/repos/danglotb/spoon/contents/{+path}","compare_url":"https://api.github.com/repos/danglotb/spoon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/danglotb/spoon/merges","archive_url":"https://api.github.com/repos/danglotb/spoon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/danglotb/spoon/downloads","issues_url":"https://api.github.com/repos/danglotb/spoon/issues{/number}","pulls_url":"https://api.github.com/repos/danglotb/spoon/pulls{/number}","milestones_url":"https://api.github.com/repos/danglotb/spoon/milestones{/number}","notifications_url":"https://api.github.com/repos/danglotb/spoon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/danglotb/spoon/labels{/name}","releases_url":"https://api.github.com/repos/danglotb/spoon/releases{/id}","deployments_url":"https://api.github.com/repos/danglotb/spoon/deployments","created_at":"2016-03-03T10:13:09Z","updated_at":"2016-03-03T10:13:11Z","pushed_at":"2016-07-19T11:39:12Z","git_url":"git://github.com/danglotb/spoon.git","ssh_url":"git@github.com:danglotb/spoon.git","clone_url":"https://github.com/danglotb/spoon.git","svn_url":"https://github.com/danglotb/spoon","homepage":"http://spoon.gforge.inria.fr/","size":8003,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"INRIA:master","ref":"master","sha":"603665683d35acd72d6ead85d6b748effd1a2a91","user":{"login":"INRIA","id":2951919,"avatar_url":"https://avatars.githubusercontent.com/u/2951919?v=3","gravatar_id":"","url":"https://api.github.com/users/INRIA","html_url":"https://github.com/INRIA","followers_url":"https://api.github.com/users/INRIA/followers","following_url":"https://api.github.com/users/INRIA/following{/other_user}","gists_url":"https://api.github.com/users/INRIA/gists{/gist_id}","starred_url":"https://api.github.com/users/INRIA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/INRIA/subscriptions","organizations_url":"https://api.github.com/users/INRIA/orgs","repos_url":"https://api.github.com/users/INRIA/repos","events_url":"https://api.github.com/users/INRIA/events{/privacy}","received_events_url":"https://api.github.com/users/INRIA/received_events","type":"Organization","site_admin":false},"repo":{"id":14176513,"name":"spoon","full_name":"INRIA/spoon","owner":{"login":"INRIA","id":2951919,"avatar_url":"https://avatars.githubusercontent.com/u/2951919?v=3","gravatar_id":"","url":"https://api.github.com/users/INRIA","html_url":"https://github.com/INRIA","followers_url":"https://api.github.com/users/INRIA/followers","following_url":"https://api.github.com/users/INRIA/following{/other_user}","gists_url":"https://api.github.com/users/INRIA/gists{/gist_id}","starred_url":"https://api.github.com/users/INRIA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/INRIA/subscriptions","organizations_url":"https://api.github.com/users/INRIA/orgs","repos_url":"https://api.github.com/users/INRIA/repos","events_url":"https://api.github.com/users/INRIA/events{/privacy}","received_events_url":"https://api.github.com/users/INRIA/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/INRIA/spoon","description":"Spoon is a library for analyzing, rewriting, transforming Java source code. It parses source files to build a well-designed AST with powerful analysis and transformation API. It fully supports Java 8.  :beers: :sparkles:","fork":false,"url":"https://api.github.com/repos/INRIA/spoon","forks_url":"https://api.github.com/repos/INRIA/spoon/forks","keys_url":"https://api.github.com/repos/INRIA/spoon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/INRIA/spoon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/INRIA/spoon/teams","hooks_url":"https://api.github.com/repos/INRIA/spoon/hooks","issue_events_url":"https://api.github.com/repos/INRIA/spoon/issues/events{/number}","events_url":"https://api.github.com/repos/INRIA/spoon/events","assignees_url":"https://api.github.com/repos/INRIA/spoon/assignees{/user}","branches_url":"https://api.github.com/repos/INRIA/spoon/branches{/branch}","tags_url":"https://api.github.com/repos/INRIA/spoon/tags","blobs_url":"https://api.github.com/repos/INRIA/spoon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/INRIA/spoon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/INRIA/spoon/git/refs{/sha}","trees_url":"https://api.github.com/repos/INRIA/spoon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/INRIA/spoon/statuses/{sha}","languages_url":"https://api.github.com/repos/INRIA/spoon/languages","stargazers_url":"https://api.github.com/repos/INRIA/spoon/stargazers","contributors_url":"https://api.github.com/repos/INRIA/spoon/contributors","subscribers_url":"https://api.github.com/repos/INRIA/spoon/subscribers","subscription_url":"https://api.github.com/repos/INRIA/spoon/subscription","commits_url":"https://api.github.com/repos/INRIA/spoon/commits{/sha}","git_commits_url":"https://api.github.com/repos/INRIA/spoon/git/commits{/sha}","comments_url":"https://api.github.com/repos/INRIA/spoon/comments{/number}","issue_comment_url":"https://api.github.com/repos/INRIA/spoon/issues/comments{/number}","contents_url":"https://api.github.com/repos/INRIA/spoon/contents/{+path}","compare_url":"https://api.github.com/repos/INRIA/spoon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/INRIA/spoon/merges","archive_url":"https://api.github.com/repos/INRIA/spoon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/INRIA/spoon/downloads","issues_url":"https://api.github.com/repos/INRIA/spoon/issues{/number}","pulls_url":"https://api.github.com/repos/INRIA/spoon/pulls{/number}","milestones_url":"https://api.github.com/repos/INRIA/spoon/milestones{/number}","notifications_url":"https://api.github.com/repos/INRIA/spoon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/INRIA/spoon/labels{/name}","releases_url":"https://api.github.com/repos/INRIA/spoon/releases{/id}","deployments_url":"https://api.github.com/repos/INRIA/spoon/deployments","created_at":"2013-11-06T15:29:59Z","updated_at":"2016-07-20T09:40:16Z","pushed_at":"2016-07-19T11:41:14Z","git_url":"git://github.com/INRIA/spoon.git","ssh_url":"git@github.com:INRIA/spoon.git","clone_url":"https://github.com/INRIA/spoon.git","svn_url":"https://github.com/INRIA/spoon","homepage":"http://spoon.gforge.inria.fr/","size":16951,"stargazers_count":238,"watchers_count":238,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":47,"mirror_url":null,"open_issues_count":31,"forks":47,"open_issues":31,"watchers":238,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/INRIA/spoon/pulls/746"},"html":{"href":"https://github.com/INRIA/spoon/pull/746"},"issue":{"href":"https://api.github.com/repos/INRIA/spoon/issues/746"},"comments":{"href":"https://api.github.com/repos/INRIA/spoon/issues/746/comments"},"review_comments":{"href":"https://api.github.com/repos/INRIA/spoon/pulls/746/comments"},"review_comment":{"href":"https://api.github.com/repos/INRIA/spoon/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/INRIA/spoon/pulls/746/commits"},"statuses":{"href":"https://api.github.com/repos/INRIA/spoon/statuses/f73bd068a89d430e54a45e40e9cb8329ca945d6b"}}}}
{"actor":{"display_login":"monperrus"}}