{"action":"created","comment":{"url":"https://api.github.com/repos/INRIA/spoon/pulls/comments/68244076","id":68244076,"diff_hunk":"@@ -0,0 +1,93 @@\n+/**\n+ * Copyright (C) 2006-2015 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.generating.clone;\n+\n+import spoon.reflect.declaration.CtElement;\n+import spoon.reflect.visitor.CtScanner;\n+import spoon.support.visitor.clone.CloneBuilder;\n+\n+import java.util.ArrayList;\n+import java.util.Collection;\n+import java.util.HashMap;\n+import java.util.List;\n+import java.util.Map;\n+import java.util.Set;\n+import java.util.TreeSet;\n+\n+/**\n+ * Used to clone a given element.\n+ *\n+ * This class is generated automatically by the processor {@link spoon.generating.CloneVisitorGenerator}.\n+ */\n+class CloneVisitorTemplate extends CtScanner {\n+\tpublic static <T extends CtElement> T clone(T element) {","path":"src/main/java/spoon/generating/clone/CloneVisitorTemplate.java","position":37,"original_position":37,"commit_id":"384b4afb7e9cbc3d3423903d3afb49876833f456","original_commit_id":"384b4afb7e9cbc3d3423903d3afb49876833f456","user":{"login":"GerardPaligot","id":1913901,"avatar_url":"https://avatars.githubusercontent.com/u/1913901?v=3","gravatar_id":"","url":"https://api.github.com/users/GerardPaligot","html_url":"https://github.com/GerardPaligot","followers_url":"https://api.github.com/users/GerardPaligot/followers","following_url":"https://api.github.com/users/GerardPaligot/following{/other_user}","gists_url":"https://api.github.com/users/GerardPaligot/gists{/gist_id}","starred_url":"https://api.github.com/users/GerardPaligot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GerardPaligot/subscriptions","organizations_url":"https://api.github.com/users/GerardPaligot/orgs","repos_url":"https://api.github.com/users/GerardPaligot/repos","events_url":"https://api.github.com/users/GerardPaligot/events{/privacy}","received_events_url":"https://api.github.com/users/GerardPaligot/received_events","type":"User","site_admin":false},"body":"Move to helper class.","created_at":"2016-06-23T14:26:13Z","updated_at":"2016-06-23T14:26:13Z","html_url":"https://github.com/INRIA/spoon/pull/717#discussion_r68244076","pull_request_url":"https://api.github.com/repos/INRIA/spoon/pulls/717","_links":{"self":{"href":"https://api.github.com/repos/INRIA/spoon/pulls/comments/68244076"},"html":{"href":"https://github.com/INRIA/spoon/pull/717#discussion_r68244076"},"pull_request":{"href":"https://api.github.com/repos/INRIA/spoon/pulls/717"}}},"pull_request":{"url":"https://api.github.com/repos/INRIA/spoon/pulls/717","id":74240811,"html_url":"https://github.com/INRIA/spoon/pull/717","diff_url":"https://github.com/INRIA/spoon/pull/717.diff","patch_url":"https://github.com/INRIA/spoon/pull/717.patch","issue_url":"https://api.github.com/repos/INRIA/spoon/issues/717","number":717,"state":"open","locked":false,"title":"refactor(clone): Creates CloneVisitor and CloneBuilder.","user":{"login":"GerardPaligot","id":1913901,"avatar_url":"https://avatars.githubusercontent.com/u/1913901?v=3","gravatar_id":"","url":"https://api.github.com/users/GerardPaligot","html_url":"https://github.com/GerardPaligot","followers_url":"https://api.github.com/users/GerardPaligot/followers","following_url":"https://api.github.com/users/GerardPaligot/following{/other_user}","gists_url":"https://api.github.com/users/GerardPaligot/gists{/gist_id}","starred_url":"https://api.github.com/users/GerardPaligot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GerardPaligot/subscriptions","organizations_url":"https://api.github.com/users/GerardPaligot/orgs","repos_url":"https://api.github.com/users/GerardPaligot/repos","events_url":"https://api.github.com/users/GerardPaligot/events{/privacy}","received_events_url":"https://api.github.com/users/GerardPaligot/received_events","type":"User","site_admin":false},"body":"Closes #662","created_at":"2016-06-17T13:17:48Z","updated_at":"2016-06-23T14:26:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ee3898e658b6c9d2038a1fd8a32eda7ab92c6b75","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/INRIA/spoon/pulls/717/commits","review_comments_url":"https://api.github.com/repos/INRIA/spoon/pulls/717/comments","review_comment_url":"https://api.github.com/repos/INRIA/spoon/pulls/comments{/number}","comments_url":"https://api.github.com/repos/INRIA/spoon/issues/717/comments","statuses_url":"https://api.github.com/repos/INRIA/spoon/statuses/384b4afb7e9cbc3d3423903d3afb49876833f456","head":{"label":"GerardPaligot:feat_cloneable","ref":"feat_cloneable","sha":"384b4afb7e9cbc3d3423903d3afb49876833f456","user":{"login":"GerardPaligot","id":1913901,"avatar_url":"https://avatars.githubusercontent.com/u/1913901?v=3","gravatar_id":"","url":"https://api.github.com/users/GerardPaligot","html_url":"https://github.com/GerardPaligot","followers_url":"https://api.github.com/users/GerardPaligot/followers","following_url":"https://api.github.com/users/GerardPaligot/following{/other_user}","gists_url":"https://api.github.com/users/GerardPaligot/gists{/gist_id}","starred_url":"https://api.github.com/users/GerardPaligot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GerardPaligot/subscriptions","organizations_url":"https://api.github.com/users/GerardPaligot/orgs","repos_url":"https://api.github.com/users/GerardPaligot/repos","events_url":"https://api.github.com/users/GerardPaligot/events{/privacy}","received_events_url":"https://api.github.com/users/GerardPaligot/received_events","type":"User","site_admin":false},"repo":{"id":22967197,"name":"spoon","full_name":"GerardPaligot/spoon","owner":{"login":"GerardPaligot","id":1913901,"avatar_url":"https://avatars.githubusercontent.com/u/1913901?v=3","gravatar_id":"","url":"https://api.github.com/users/GerardPaligot","html_url":"https://github.com/GerardPaligot","followers_url":"https://api.github.com/users/GerardPaligot/followers","following_url":"https://api.github.com/users/GerardPaligot/following{/other_user}","gists_url":"https://api.github.com/users/GerardPaligot/gists{/gist_id}","starred_url":"https://api.github.com/users/GerardPaligot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GerardPaligot/subscriptions","organizations_url":"https://api.github.com/users/GerardPaligot/orgs","repos_url":"https://api.github.com/users/GerardPaligot/repos","events_url":"https://api.github.com/users/GerardPaligot/events{/privacy}","received_events_url":"https://api.github.com/users/GerardPaligot/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/GerardPaligot/spoon","description":"Spoon is a library for analyzing and transforming Java source code.","fork":true,"url":"https://api.github.com/repos/GerardPaligot/spoon","forks_url":"https://api.github.com/repos/GerardPaligot/spoon/forks","keys_url":"https://api.github.com/repos/GerardPaligot/spoon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GerardPaligot/spoon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GerardPaligot/spoon/teams","hooks_url":"https://api.github.com/repos/GerardPaligot/spoon/hooks","issue_events_url":"https://api.github.com/repos/GerardPaligot/spoon/issues/events{/number}","events_url":"https://api.github.com/repos/GerardPaligot/spoon/events","assignees_url":"https://api.github.com/repos/GerardPaligot/spoon/assignees{/user}","branches_url":"https://api.github.com/repos/GerardPaligot/spoon/branches{/branch}","tags_url":"https://api.github.com/repos/GerardPaligot/spoon/tags","blobs_url":"https://api.github.com/repos/GerardPaligot/spoon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GerardPaligot/spoon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GerardPaligot/spoon/git/refs{/sha}","trees_url":"https://api.github.com/repos/GerardPaligot/spoon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GerardPaligot/spoon/statuses/{sha}","languages_url":"https://api.github.com/repos/GerardPaligot/spoon/languages","stargazers_url":"https://api.github.com/repos/GerardPaligot/spoon/stargazers","contributors_url":"https://api.github.com/repos/GerardPaligot/spoon/contributors","subscribers_url":"https://api.github.com/repos/GerardPaligot/spoon/subscribers","subscription_url":"https://api.github.com/repos/GerardPaligot/spoon/subscription","commits_url":"https://api.github.com/repos/GerardPaligot/spoon/commits{/sha}","git_commits_url":"https://api.github.com/repos/GerardPaligot/spoon/git/commits{/sha}","comments_url":"https://api.github.com/repos/GerardPaligot/spoon/comments{/number}","issue_comment_url":"https://api.github.com/repos/GerardPaligot/spoon/issues/comments{/number}","contents_url":"https://api.github.com/repos/GerardPaligot/spoon/contents/{+path}","compare_url":"https://api.github.com/repos/GerardPaligot/spoon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GerardPaligot/spoon/merges","archive_url":"https://api.github.com/repos/GerardPaligot/spoon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GerardPaligot/spoon/downloads","issues_url":"https://api.github.com/repos/GerardPaligot/spoon/issues{/number}","pulls_url":"https://api.github.com/repos/GerardPaligot/spoon/pulls{/number}","milestones_url":"https://api.github.com/repos/GerardPaligot/spoon/milestones{/number}","notifications_url":"https://api.github.com/repos/GerardPaligot/spoon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GerardPaligot/spoon/labels{/name}","releases_url":"https://api.github.com/repos/GerardPaligot/spoon/releases{/id}","deployments_url":"https://api.github.com/repos/GerardPaligot/spoon/deployments","created_at":"2014-08-14T20:12:45Z","updated_at":"2016-01-14T15:22:44Z","pushed_at":"2016-06-23T14:11:26Z","git_url":"git://github.com/GerardPaligot/spoon.git","ssh_url":"git@github.com:GerardPaligot/spoon.git","clone_url":"https://github.com/GerardPaligot/spoon.git","svn_url":"https://github.com/GerardPaligot/spoon","homepage":"http://spoon.gforge.inria.fr/","size":7669,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"INRIA:master","ref":"master","sha":"c196c228c42d2b9ad3b77e5c18d2686118ed1159","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-06-15T07:51:43Z","pushed_at":"2016-06-23T14:11:26Z","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":11741,"stargazers_count":232,"watchers_count":232,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":46,"mirror_url":null,"open_issues_count":28,"forks":46,"open_issues":28,"watchers":232,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/INRIA/spoon/pulls/717"},"html":{"href":"https://github.com/INRIA/spoon/pull/717"},"issue":{"href":"https://api.github.com/repos/INRIA/spoon/issues/717"},"comments":{"href":"https://api.github.com/repos/INRIA/spoon/issues/717/comments"},"review_comments":{"href":"https://api.github.com/repos/INRIA/spoon/pulls/717/comments"},"review_comment":{"href":"https://api.github.com/repos/INRIA/spoon/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/INRIA/spoon/pulls/717/commits"},"statuses":{"href":"https://api.github.com/repos/INRIA/spoon/statuses/384b4afb7e9cbc3d3423903d3afb49876833f456"}}}}
{"actor":{"display_login":"GerardPaligot"}}