{"action":"created","comment":{"url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/pulls/comments/171879506","pull_request_review_id":100813996,"id":171879506,"diff_hunk":"@@ -0,0 +1,48 @@\n+/*\n+ * Copyright 2014-2018 Andrew Gaul <andrew@gaul.org>\n+ *\n+ * Licensed under the Apache License, Version 2.0 (the \"License\");\n+ * you may not use this file except in compliance with the License.\n+ * You may obtain a copy of the License at\n+ *\n+ * http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing, software\n+ * distributed under the License is distributed on an \"AS IS\" BASIS,\n+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ * See the License for the specific language governing permissions and\n+ * limitations under the License.\n+ */\n+\n+package org.gaul.annotation.processor;\n+\n+import java.io.File;\n+\n+public final class OutputPathFinder {\n+\n+    private static final String[] FILE_LOCATIONS =\n+        {\"/target/classes\", \"/target/test-classes\"};\n+\n+    private OutputPathFinder() { }\n+\n+    public static String getOutputPath(String outputDir) {\n+        String requiredPath = outputDir;","path":"modernizer-annotation-processor/src/main/java/org/gaul/annotation/processor/OutputPathFinder.java","position":29,"original_position":29,"commit_id":"7831e64f174fde89bd63610e9998a989fd2e4bb9","original_commit_id":"7831e64f174fde89bd63610e9998a989fd2e4bb9","user":{"login":"stevegutz","id":3606665,"avatar_url":"https://avatars1.githubusercontent.com/u/3606665?v=4","gravatar_id":"","url":"https://api.github.com/users/stevegutz","html_url":"https://github.com/stevegutz","followers_url":"https://api.github.com/users/stevegutz/followers","following_url":"https://api.github.com/users/stevegutz/following{/other_user}","gists_url":"https://api.github.com/users/stevegutz/gists{/gist_id}","starred_url":"https://api.github.com/users/stevegutz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevegutz/subscriptions","organizations_url":"https://api.github.com/users/stevegutz/orgs","repos_url":"https://api.github.com/users/stevegutz/repos","events_url":"https://api.github.com/users/stevegutz/events{/privacy}","received_events_url":"https://api.github.com/users/stevegutz/received_events","type":"User","site_admin":false},"body":"Why do this?","created_at":"2018-03-02T15:38:04Z","updated_at":"2018-03-02T15:38:04Z","html_url":"https://github.com/HubSpot/modernizer-maven-plugin/pull/1#discussion_r171879506","pull_request_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/pulls/1","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/pulls/comments/171879506"},"html":{"href":"https://github.com/HubSpot/modernizer-maven-plugin/pull/1#discussion_r171879506"},"pull_request":{"href":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/pulls/1","id":171753190,"html_url":"https://github.com/HubSpot/modernizer-maven-plugin/pull/1","diff_url":"https://github.com/HubSpot/modernizer-maven-plugin/pull/1.diff","patch_url":"https://github.com/HubSpot/modernizer-maven-plugin/pull/1.patch","issue_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/issues/1","number":1,"state":"open","locked":false,"title":"Annotation processing","user":{"login":"Nimisha94","id":13430900,"avatar_url":"https://avatars2.githubusercontent.com/u/13430900?v=4","gravatar_id":"","url":"https://api.github.com/users/Nimisha94","html_url":"https://github.com/Nimisha94","followers_url":"https://api.github.com/users/Nimisha94/followers","following_url":"https://api.github.com/users/Nimisha94/following{/other_user}","gists_url":"https://api.github.com/users/Nimisha94/gists{/gist_id}","starred_url":"https://api.github.com/users/Nimisha94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nimisha94/subscriptions","organizations_url":"https://api.github.com/users/Nimisha94/orgs","repos_url":"https://api.github.com/users/Nimisha94/repos","events_url":"https://api.github.com/users/Nimisha94/events{/privacy}","received_events_url":"https://api.github.com/users/Nimisha94/received_events","type":"User","site_admin":false},"body":"This PR adds `annotation-processor` module to the plugin which allows suppressing modernizer annotations on classes.\r\n\r\nThe processor fetches the annotated classes and dumps them into `target/classes/ModernizerIgnoreAnnotatedClasses.txt` file. The plugin reads this file and adds the classes to `allIgnoreFullClassNamePatterns `. All the classes in this list are ignored by the plugin.\r\n\r\n@stevegutz @jhaber @kmclarnon ","created_at":"2018-02-27T18:56:21Z","updated_at":"2018-03-02T15:38:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4928f0098c99d6bce81738eb7b0ed84fb6d8d65a","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/pulls/1/commits","review_comments_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/pulls/1/comments","review_comment_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/issues/1/comments","statuses_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/statuses/7831e64f174fde89bd63610e9998a989fd2e4bb9","head":{"label":"HubSpot:annotation-processing","ref":"annotation-processing","sha":"7831e64f174fde89bd63610e9998a989fd2e4bb9","user":{"login":"HubSpot","id":326419,"avatar_url":"https://avatars2.githubusercontent.com/u/326419?v=4","gravatar_id":"","url":"https://api.github.com/users/HubSpot","html_url":"https://github.com/HubSpot","followers_url":"https://api.github.com/users/HubSpot/followers","following_url":"https://api.github.com/users/HubSpot/following{/other_user}","gists_url":"https://api.github.com/users/HubSpot/gists{/gist_id}","starred_url":"https://api.github.com/users/HubSpot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HubSpot/subscriptions","organizations_url":"https://api.github.com/users/HubSpot/orgs","repos_url":"https://api.github.com/users/HubSpot/repos","events_url":"https://api.github.com/users/HubSpot/events{/privacy}","received_events_url":"https://api.github.com/users/HubSpot/received_events","type":"Organization","site_admin":false},"repo":{"id":122232877,"name":"modernizer-maven-plugin","full_name":"HubSpot/modernizer-maven-plugin","owner":{"login":"HubSpot","id":326419,"avatar_url":"https://avatars2.githubusercontent.com/u/326419?v=4","gravatar_id":"","url":"https://api.github.com/users/HubSpot","html_url":"https://github.com/HubSpot","followers_url":"https://api.github.com/users/HubSpot/followers","following_url":"https://api.github.com/users/HubSpot/following{/other_user}","gists_url":"https://api.github.com/users/HubSpot/gists{/gist_id}","starred_url":"https://api.github.com/users/HubSpot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HubSpot/subscriptions","organizations_url":"https://api.github.com/users/HubSpot/orgs","repos_url":"https://api.github.com/users/HubSpot/repos","events_url":"https://api.github.com/users/HubSpot/events{/privacy}","received_events_url":"https://api.github.com/users/HubSpot/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/HubSpot/modernizer-maven-plugin","description":"Detect uses of legacy Java APIs","fork":true,"url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin","forks_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/forks","keys_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/teams","hooks_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/hooks","issue_events_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/events","assignees_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/tags","blobs_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/languages","stargazers_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/stargazers","contributors_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/contributors","subscribers_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/subscribers","subscription_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/subscription","commits_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/merges","archive_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/downloads","issues_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/labels{/name}","releases_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/releases{/id}","deployments_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/deployments","created_at":"2018-02-20T17:43:24Z","updated_at":"2018-02-20T17:43:26Z","pushed_at":"2018-03-02T15:28:25Z","git_url":"git://github.com/HubSpot/modernizer-maven-plugin.git","ssh_url":"git@github.com:HubSpot/modernizer-maven-plugin.git","clone_url":"https://github.com/HubSpot/modernizer-maven-plugin.git","svn_url":"https://github.com/HubSpot/modernizer-maven-plugin","homepage":"","size":180,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":1,"watchers":0,"default_branch":"hubspot"}},"base":{"label":"HubSpot:hubspot","ref":"hubspot","sha":"ee7d9f88ad370cfe04913322878db8fba34eb129","user":{"login":"HubSpot","id":326419,"avatar_url":"https://avatars2.githubusercontent.com/u/326419?v=4","gravatar_id":"","url":"https://api.github.com/users/HubSpot","html_url":"https://github.com/HubSpot","followers_url":"https://api.github.com/users/HubSpot/followers","following_url":"https://api.github.com/users/HubSpot/following{/other_user}","gists_url":"https://api.github.com/users/HubSpot/gists{/gist_id}","starred_url":"https://api.github.com/users/HubSpot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HubSpot/subscriptions","organizations_url":"https://api.github.com/users/HubSpot/orgs","repos_url":"https://api.github.com/users/HubSpot/repos","events_url":"https://api.github.com/users/HubSpot/events{/privacy}","received_events_url":"https://api.github.com/users/HubSpot/received_events","type":"Organization","site_admin":false},"repo":{"id":122232877,"name":"modernizer-maven-plugin","full_name":"HubSpot/modernizer-maven-plugin","owner":{"login":"HubSpot","id":326419,"avatar_url":"https://avatars2.githubusercontent.com/u/326419?v=4","gravatar_id":"","url":"https://api.github.com/users/HubSpot","html_url":"https://github.com/HubSpot","followers_url":"https://api.github.com/users/HubSpot/followers","following_url":"https://api.github.com/users/HubSpot/following{/other_user}","gists_url":"https://api.github.com/users/HubSpot/gists{/gist_id}","starred_url":"https://api.github.com/users/HubSpot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HubSpot/subscriptions","organizations_url":"https://api.github.com/users/HubSpot/orgs","repos_url":"https://api.github.com/users/HubSpot/repos","events_url":"https://api.github.com/users/HubSpot/events{/privacy}","received_events_url":"https://api.github.com/users/HubSpot/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/HubSpot/modernizer-maven-plugin","description":"Detect uses of legacy Java APIs","fork":true,"url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin","forks_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/forks","keys_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/teams","hooks_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/hooks","issue_events_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/events","assignees_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/tags","blobs_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/languages","stargazers_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/stargazers","contributors_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/contributors","subscribers_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/subscribers","subscription_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/subscription","commits_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/merges","archive_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/downloads","issues_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/labels{/name}","releases_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/releases{/id}","deployments_url":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/deployments","created_at":"2018-02-20T17:43:24Z","updated_at":"2018-02-20T17:43:26Z","pushed_at":"2018-03-02T15:28:25Z","git_url":"git://github.com/HubSpot/modernizer-maven-plugin.git","ssh_url":"git@github.com:HubSpot/modernizer-maven-plugin.git","clone_url":"https://github.com/HubSpot/modernizer-maven-plugin.git","svn_url":"https://github.com/HubSpot/modernizer-maven-plugin","homepage":"","size":180,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":1,"watchers":0,"default_branch":"hubspot"}},"_links":{"self":{"href":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/pulls/1"},"html":{"href":"https://github.com/HubSpot/modernizer-maven-plugin/pull/1"},"issue":{"href":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/issues/1"},"comments":{"href":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/HubSpot/modernizer-maven-plugin/statuses/7831e64f174fde89bd63610e9998a989fd2e4bb9"}},"author_association":"NONE"}}
{"actor":{"display_login":"stevegutz"}}