{"action":"created","comment":{"url":"https://api.github.com/repos/checkstyle/checkstyle/pulls/comments/110531526","pull_request_review_id":31714378,"id":110531526,"diff_hunk":"@@ -0,0 +1,64 @@\n+package com.puppycrawl.tools.checkstyle.checks.indentation; //indent:0 exp:0\n+\n+import java.io.BufferedWriter; //indent:0 exp:0\n+import java.io.IOException; //indent:0 exp:0\n+import java.nio.charset.Charset; //indent:0 exp:0\n+import java.nio.charset.MalformedInputException; //indent:0 exp:0\n+import java.nio.charset.StandardCharsets; //indent:0 exp:0\n+import java.nio.file.Files; //indent:0 exp:0\n+import java.nio.file.Path; //indent:0 exp:0\n+import java.nio.file.Paths; //indent:0 exp:0\n+import java.util.zip.ZipFile; //indent:0 exp:0\n+\n+public final class InputMultilineTryWithResources { //indent:0 exp:0\n+\n+    private InputMultilineTryWithResources() { //indent:4 exp:4\n+\n+    } //indent:4 exp:4\n+\n+    static void fooMethod(String zipFileName) throws IOException { //indent:4 exp:4\n+\n+        Charset charset = StandardCharsets.US_ASCII; //indent:8 exp:8\n+        Path outputFilePath = Paths.get(zipFileName); //indent:8 exp:8\n+\n+        try ( //indent:8 exp:8\n+BufferedWriter writer = Files.newBufferedWriter(outputFilePath, charset); //indent:0 exp:12 warn\n+            ZipFile zf = new ZipFile(zipFileName) //indent:12 exp:12\n+        ) { //indent:8 exp:8\n+            zf.getName(); //indent:12 exp:12\n+        } //indent:8 exp:8\n+        try ( //indent:8 exp:8\n+            BufferedWriter writer = Files. //indent:12 exp:12\n+newBufferedWriter(outputFilePath, charset); //indent:0 exp:0","path":"src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputMultilineTryWithResources.java","position":32,"original_position":32,"commit_id":"6affcf51d742179d8029537a85561031e37c5108","original_commit_id":"6affcf51d742179d8029537a85561031e37c5108","user":{"login":"rnveach","id":5427943,"avatar_url":"https://avatars2.githubusercontent.com/u/5427943?v=3","gravatar_id":"","url":"https://api.github.com/users/rnveach","html_url":"https://github.com/rnveach","followers_url":"https://api.github.com/users/rnveach/followers","following_url":"https://api.github.com/users/rnveach/following{/other_user}","gists_url":"https://api.github.com/users/rnveach/gists{/gist_id}","starred_url":"https://api.github.com/users/rnveach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rnveach/subscriptions","organizations_url":"https://api.github.com/users/rnveach/orgs","repos_url":"https://api.github.com/users/rnveach/repos","events_url":"https://api.github.com/users/rnveach/events{/privacy}","received_events_url":"https://api.github.com/users/rnveach/received_events","type":"User","site_admin":false},"body":"no warning here is definitely wrong.\r\nCan we fix this in scope of this PR?","created_at":"2017-04-09T02:39:32Z","updated_at":"2017-04-09T02:54:39Z","html_url":"https://github.com/checkstyle/checkstyle/pull/4171#discussion_r110531526","pull_request_url":"https://api.github.com/repos/checkstyle/checkstyle/pulls/4171","_links":{"self":{"href":"https://api.github.com/repos/checkstyle/checkstyle/pulls/comments/110531526"},"html":{"href":"https://github.com/checkstyle/checkstyle/pull/4171#discussion_r110531526"},"pull_request":{"href":"https://api.github.com/repos/checkstyle/checkstyle/pulls/4171"}}},"pull_request":{"url":"https://api.github.com/repos/checkstyle/checkstyle/pulls/4171","id":114883804,"html_url":"https://github.com/checkstyle/checkstyle/pull/4171","diff_url":"https://github.com/checkstyle/checkstyle/pull/4171.diff","patch_url":"https://github.com/checkstyle/checkstyle/pull/4171.patch","issue_url":"https://api.github.com/repos/checkstyle/checkstyle/issues/4171","number":4171,"state":"open","locked":false,"title":"Issue #3131: Add support for try with resources","user":{"login":"kukreja-vikramaditya","id":15936912,"avatar_url":"https://avatars0.githubusercontent.com/u/15936912?v=3","gravatar_id":"","url":"https://api.github.com/users/kukreja-vikramaditya","html_url":"https://github.com/kukreja-vikramaditya","followers_url":"https://api.github.com/users/kukreja-vikramaditya/followers","following_url":"https://api.github.com/users/kukreja-vikramaditya/following{/other_user}","gists_url":"https://api.github.com/users/kukreja-vikramaditya/gists{/gist_id}","starred_url":"https://api.github.com/users/kukreja-vikramaditya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kukreja-vikramaditya/subscriptions","organizations_url":"https://api.github.com/users/kukreja-vikramaditya/orgs","repos_url":"https://api.github.com/users/kukreja-vikramaditya/repos","events_url":"https://api.github.com/users/kukreja-vikramaditya/events{/privacy}","received_events_url":"https://api.github.com/users/kukreja-vikramaditya/received_events","type":"User","site_admin":false},"body":"Issue: #3131\r\n","created_at":"2017-04-07T19:25:24Z","updated_at":"2017-04-09T02:54:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5806ed34960521649b165bc307b302ddb2faefa0","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/checkstyle/checkstyle/pulls/4171/commits","review_comments_url":"https://api.github.com/repos/checkstyle/checkstyle/pulls/4171/comments","review_comment_url":"https://api.github.com/repos/checkstyle/checkstyle/pulls/comments{/number}","comments_url":"https://api.github.com/repos/checkstyle/checkstyle/issues/4171/comments","statuses_url":"https://api.github.com/repos/checkstyle/checkstyle/statuses/6affcf51d742179d8029537a85561031e37c5108","head":{"label":"kukreja-vikramaditya:fix-issue-3131","ref":"fix-issue-3131","sha":"6affcf51d742179d8029537a85561031e37c5108","user":{"login":"kukreja-vikramaditya","id":15936912,"avatar_url":"https://avatars0.githubusercontent.com/u/15936912?v=3","gravatar_id":"","url":"https://api.github.com/users/kukreja-vikramaditya","html_url":"https://github.com/kukreja-vikramaditya","followers_url":"https://api.github.com/users/kukreja-vikramaditya/followers","following_url":"https://api.github.com/users/kukreja-vikramaditya/following{/other_user}","gists_url":"https://api.github.com/users/kukreja-vikramaditya/gists{/gist_id}","starred_url":"https://api.github.com/users/kukreja-vikramaditya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kukreja-vikramaditya/subscriptions","organizations_url":"https://api.github.com/users/kukreja-vikramaditya/orgs","repos_url":"https://api.github.com/users/kukreja-vikramaditya/repos","events_url":"https://api.github.com/users/kukreja-vikramaditya/events{/privacy}","received_events_url":"https://api.github.com/users/kukreja-vikramaditya/received_events","type":"User","site_admin":false},"repo":{"id":83550745,"name":"checkstyle","full_name":"kukreja-vikramaditya/checkstyle","owner":{"login":"kukreja-vikramaditya","id":15936912,"avatar_url":"https://avatars0.githubusercontent.com/u/15936912?v=3","gravatar_id":"","url":"https://api.github.com/users/kukreja-vikramaditya","html_url":"https://github.com/kukreja-vikramaditya","followers_url":"https://api.github.com/users/kukreja-vikramaditya/followers","following_url":"https://api.github.com/users/kukreja-vikramaditya/following{/other_user}","gists_url":"https://api.github.com/users/kukreja-vikramaditya/gists{/gist_id}","starred_url":"https://api.github.com/users/kukreja-vikramaditya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kukreja-vikramaditya/subscriptions","organizations_url":"https://api.github.com/users/kukreja-vikramaditya/orgs","repos_url":"https://api.github.com/users/kukreja-vikramaditya/repos","events_url":"https://api.github.com/users/kukreja-vikramaditya/events{/privacy}","received_events_url":"https://api.github.com/users/kukreja-vikramaditya/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kukreja-vikramaditya/checkstyle","description":"Checkstyle is a development tool to help programmers write Java code that adheres to a coding standard. By default it supports the Google Java Style Guide and Sun Code Conventions, but is highly configurable. It can be invoked with an ANT task and a command line program.","fork":true,"url":"https://api.github.com/repos/kukreja-vikramaditya/checkstyle","forks_url":"https://api.github.com/repos/kukreja-vikramaditya/checkstyle/forks","keys_url":"https://api.github.com/repos/kukreja-vikramaditya/checkstyle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kukreja-vikramaditya/checkstyle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kukreja-vikramaditya/checkstyle/teams","hooks_url":"https://api.github.com/repos/kukreja-vikramaditya/checkstyle/hooks","issue_events_url":"https://api.github.com/repos/kukreja-vikramaditya/checkstyle/issues/events{/number}","events_url":"https://api.github.com/repos/kukreja-vikramaditya/checkstyle/events","assignees_url":"https://api.github.com/repos/kukreja-vikramaditya/checkstyle/assignees{/user}","branches_url":"https://api.github.com/repos/kukreja-vikramaditya/checkstyle/branches{/branch}","tags_url":"https://api.github.com/repos/kukreja-vikramaditya/checkstyle/tags","blobs_url":"https://api.github.com/repos/kukreja-vikramaditya/checkstyle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kukreja-vikramaditya/checkstyle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kukreja-vikramaditya/checkstyle/git/refs{/sha}","trees_url":"https://api.github.com/repos/kukreja-vikramaditya/checkstyle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kukreja-vikramaditya/checkstyle/statuses/{sha}","languages_url":"https://api.github.com/repos/kukreja-vikramaditya/checkstyle/languages","stargazers_url":"https://api.github.com/repos/kukreja-vikramaditya/checkstyle/stargazers","contributors_url":"https://api.github.com/repos/kukreja-vikramaditya/checkstyle/contributors","subscribers_url":"https://api.github.com/repos/kukreja-vikramaditya/checkstyle/subscribers","subscription_url":"https://api.github.com/repos/kukreja-vikramaditya/checkstyle/subscription","commits_url":"https://api.github.com/repos/kukreja-vikramaditya/checkstyle/commits{/sha}","git_commits_url":"https://api.github.com/repos/kukreja-vikramaditya/checkstyle/git/commits{/sha}","comments_url":"https://api.github.com/repos/kukreja-vikramaditya/checkstyle/comments{/number}","issue_comment_url":"https://api.github.com/repos/kukreja-vikramaditya/checkstyle/issues/comments{/number}","contents_url":"https://api.github.com/repos/kukreja-vikramaditya/checkstyle/contents/{+path}","compare_url":"https://api.github.com/repos/kukreja-vikramaditya/checkstyle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kukreja-vikramaditya/checkstyle/merges","archive_url":"https://api.github.com/repos/kukreja-vikramaditya/checkstyle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kukreja-vikramaditya/checkstyle/downloads","issues_url":"https://api.github.com/repos/kukreja-vikramaditya/checkstyle/issues{/number}","pulls_url":"https://api.github.com/repos/kukreja-vikramaditya/checkstyle/pulls{/number}","milestones_url":"https://api.github.com/repos/kukreja-vikramaditya/checkstyle/milestones{/number}","notifications_url":"https://api.github.com/repos/kukreja-vikramaditya/checkstyle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kukreja-vikramaditya/checkstyle/labels{/name}","releases_url":"https://api.github.com/repos/kukreja-vikramaditya/checkstyle/releases{/id}","deployments_url":"https://api.github.com/repos/kukreja-vikramaditya/checkstyle/deployments","created_at":"2017-03-01T12:12:41Z","updated_at":"2017-03-01T12:12:47Z","pushed_at":"2017-04-08T08:35:44Z","git_url":"git://github.com/kukreja-vikramaditya/checkstyle.git","ssh_url":"git@github.com:kukreja-vikramaditya/checkstyle.git","clone_url":"https://github.com/kukreja-vikramaditya/checkstyle.git","svn_url":"https://github.com/kukreja-vikramaditya/checkstyle","homepage":"http://checkstyle.sourceforge.net/","size":54467,"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,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"checkstyle:master","ref":"master","sha":"921398fb45d36ec0d49cf4e6175a1c977aae9b5e","user":{"login":"checkstyle","id":5179750,"avatar_url":"https://avatars3.githubusercontent.com/u/5179750?v=3","gravatar_id":"","url":"https://api.github.com/users/checkstyle","html_url":"https://github.com/checkstyle","followers_url":"https://api.github.com/users/checkstyle/followers","following_url":"https://api.github.com/users/checkstyle/following{/other_user}","gists_url":"https://api.github.com/users/checkstyle/gists{/gist_id}","starred_url":"https://api.github.com/users/checkstyle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/checkstyle/subscriptions","organizations_url":"https://api.github.com/users/checkstyle/orgs","repos_url":"https://api.github.com/users/checkstyle/repos","events_url":"https://api.github.com/users/checkstyle/events{/privacy}","received_events_url":"https://api.github.com/users/checkstyle/received_events","type":"Organization","site_admin":false},"repo":{"id":12499251,"name":"checkstyle","full_name":"checkstyle/checkstyle","owner":{"login":"checkstyle","id":5179750,"avatar_url":"https://avatars3.githubusercontent.com/u/5179750?v=3","gravatar_id":"","url":"https://api.github.com/users/checkstyle","html_url":"https://github.com/checkstyle","followers_url":"https://api.github.com/users/checkstyle/followers","following_url":"https://api.github.com/users/checkstyle/following{/other_user}","gists_url":"https://api.github.com/users/checkstyle/gists{/gist_id}","starred_url":"https://api.github.com/users/checkstyle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/checkstyle/subscriptions","organizations_url":"https://api.github.com/users/checkstyle/orgs","repos_url":"https://api.github.com/users/checkstyle/repos","events_url":"https://api.github.com/users/checkstyle/events{/privacy}","received_events_url":"https://api.github.com/users/checkstyle/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/checkstyle/checkstyle","description":"Checkstyle is a development tool to help programmers write Java code that adheres to a coding standard. By default it supports the Google Java Style Guide and Sun Code Conventions, but is highly configurable. It can be invoked with an ANT task and a command line program.","fork":false,"url":"https://api.github.com/repos/checkstyle/checkstyle","forks_url":"https://api.github.com/repos/checkstyle/checkstyle/forks","keys_url":"https://api.github.com/repos/checkstyle/checkstyle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/checkstyle/checkstyle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/checkstyle/checkstyle/teams","hooks_url":"https://api.github.com/repos/checkstyle/checkstyle/hooks","issue_events_url":"https://api.github.com/repos/checkstyle/checkstyle/issues/events{/number}","events_url":"https://api.github.com/repos/checkstyle/checkstyle/events","assignees_url":"https://api.github.com/repos/checkstyle/checkstyle/assignees{/user}","branches_url":"https://api.github.com/repos/checkstyle/checkstyle/branches{/branch}","tags_url":"https://api.github.com/repos/checkstyle/checkstyle/tags","blobs_url":"https://api.github.com/repos/checkstyle/checkstyle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/checkstyle/checkstyle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/checkstyle/checkstyle/git/refs{/sha}","trees_url":"https://api.github.com/repos/checkstyle/checkstyle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/checkstyle/checkstyle/statuses/{sha}","languages_url":"https://api.github.com/repos/checkstyle/checkstyle/languages","stargazers_url":"https://api.github.com/repos/checkstyle/checkstyle/stargazers","contributors_url":"https://api.github.com/repos/checkstyle/checkstyle/contributors","subscribers_url":"https://api.github.com/repos/checkstyle/checkstyle/subscribers","subscription_url":"https://api.github.com/repos/checkstyle/checkstyle/subscription","commits_url":"https://api.github.com/repos/checkstyle/checkstyle/commits{/sha}","git_commits_url":"https://api.github.com/repos/checkstyle/checkstyle/git/commits{/sha}","comments_url":"https://api.github.com/repos/checkstyle/checkstyle/comments{/number}","issue_comment_url":"https://api.github.com/repos/checkstyle/checkstyle/issues/comments{/number}","contents_url":"https://api.github.com/repos/checkstyle/checkstyle/contents/{+path}","compare_url":"https://api.github.com/repos/checkstyle/checkstyle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/checkstyle/checkstyle/merges","archive_url":"https://api.github.com/repos/checkstyle/checkstyle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/checkstyle/checkstyle/downloads","issues_url":"https://api.github.com/repos/checkstyle/checkstyle/issues{/number}","pulls_url":"https://api.github.com/repos/checkstyle/checkstyle/pulls{/number}","milestones_url":"https://api.github.com/repos/checkstyle/checkstyle/milestones{/number}","notifications_url":"https://api.github.com/repos/checkstyle/checkstyle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/checkstyle/checkstyle/labels{/name}","releases_url":"https://api.github.com/repos/checkstyle/checkstyle/releases{/id}","deployments_url":"https://api.github.com/repos/checkstyle/checkstyle/deployments","created_at":"2013-08-31T02:05:05Z","updated_at":"2017-04-07T22:42:21Z","pushed_at":"2017-04-08T23:52:25Z","git_url":"git://github.com/checkstyle/checkstyle.git","ssh_url":"git@github.com:checkstyle/checkstyle.git","clone_url":"https://github.com/checkstyle/checkstyle.git","svn_url":"https://github.com/checkstyle/checkstyle","homepage":"http://checkstyle.sourceforge.net/","size":54449,"stargazers_count":1873,"watchers_count":1873,"language":"Java","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":886,"mirror_url":null,"open_issues_count":376,"forks":886,"open_issues":376,"watchers":1873,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/checkstyle/checkstyle/pulls/4171"},"html":{"href":"https://github.com/checkstyle/checkstyle/pull/4171"},"issue":{"href":"https://api.github.com/repos/checkstyle/checkstyle/issues/4171"},"comments":{"href":"https://api.github.com/repos/checkstyle/checkstyle/issues/4171/comments"},"review_comments":{"href":"https://api.github.com/repos/checkstyle/checkstyle/pulls/4171/comments"},"review_comment":{"href":"https://api.github.com/repos/checkstyle/checkstyle/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/checkstyle/checkstyle/pulls/4171/commits"},"statuses":{"href":"https://api.github.com/repos/checkstyle/checkstyle/statuses/6affcf51d742179d8029537a85561031e37c5108"}}}}
{"actor":{"display_login":"rnveach"}}