{"action":"created","comment":{"url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/pulls/comments/58222496","id":58222496,"diff_hunk":"@@ -0,0 +1,94 @@\n+\n+import org.junit.Test;\n+\n+import java.awt.Desktop;\n+import java.io.*;\n+import java.util.Scanner;\n+\n+\n+public class Task1 {\n+    public static void main(String[] args) {\n+\n+        Desktop desktop = null;\n+\n+        if (Desktop.isDesktopSupported()) {\n+            desktop = Desktop.getDesktop();\n+        }\n+        try {\n+            desktop.open(new File(String.valueOf(fileDirection())));\n+        } catch (IOException ioe) {\n+            System.err.println(\"Error 404!\");","path":"Vladimir_Saltykov/Module 3 - Exceptions and IO streams/ThirdHomework/src/main/java/Task1.java","position":20,"original_position":20,"commit_id":"3bcff6edf03993745c2dc531e4055fbab6972ed1","original_commit_id":"3bcff6edf03993745c2dc531e4055fbab6972ed1","user":{"login":"technicaltaskjava","id":17650564,"avatar_url":"https://avatars.githubusercontent.com/u/17650564?v=3","gravatar_id":"","url":"https://api.github.com/users/technicaltaskjava","html_url":"https://github.com/technicaltaskjava","followers_url":"https://api.github.com/users/technicaltaskjava/followers","following_url":"https://api.github.com/users/technicaltaskjava/following{/other_user}","gists_url":"https://api.github.com/users/technicaltaskjava/gists{/gist_id}","starred_url":"https://api.github.com/users/technicaltaskjava/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/technicaltaskjava/subscriptions","organizations_url":"https://api.github.com/users/technicaltaskjava/orgs","repos_url":"https://api.github.com/users/technicaltaskjava/repos","events_url":"https://api.github.com/users/technicaltaskjava/events{/privacy}","received_events_url":"https://api.github.com/users/technicaltaskjava/received_events","type":"User","site_admin":false},"body":"![MAJOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-major.png) Replace this usage of System.out or System.err by a logger. [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](http://localhost:9000/coding_rules#rule_key=squid%3AS106)\n","created_at":"2016-04-01T15:30:22Z","updated_at":"2016-04-01T15:30:22Z","html_url":"https://github.com/technicaltaskjava/JavaCoreHomework/pull/64#discussion_r58222496","pull_request_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/pulls/64","_links":{"self":{"href":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/pulls/comments/58222496"},"html":{"href":"https://github.com/technicaltaskjava/JavaCoreHomework/pull/64#discussion_r58222496"},"pull_request":{"href":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/pulls/64"}}},"pull_request":{"url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/pulls/64","id":64921300,"html_url":"https://github.com/technicaltaskjava/JavaCoreHomework/pull/64","diff_url":"https://github.com/technicaltaskjava/JavaCoreHomework/pull/64.diff","patch_url":"https://github.com/technicaltaskjava/JavaCoreHomework/pull/64.patch","issue_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/issues/64","number":64,"state":"open","locked":false,"title":"Vladimir_Saltykov Module 3 - Exceptions and IO streams","user":{"login":"JediScout","id":16035334,"avatar_url":"https://avatars.githubusercontent.com/u/16035334?v=3","gravatar_id":"","url":"https://api.github.com/users/JediScout","html_url":"https://github.com/JediScout","followers_url":"https://api.github.com/users/JediScout/followers","following_url":"https://api.github.com/users/JediScout/following{/other_user}","gists_url":"https://api.github.com/users/JediScout/gists{/gist_id}","starred_url":"https://api.github.com/users/JediScout/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JediScout/subscriptions","organizations_url":"https://api.github.com/users/JediScout/orgs","repos_url":"https://api.github.com/users/JediScout/repos","events_url":"https://api.github.com/users/JediScout/events{/privacy}","received_events_url":"https://api.github.com/users/JediScout/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-04-01T09:57:58Z","updated_at":"2016-04-01T15:30:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0311b20ee77b4a12d531cb7df55ea96fd52be040","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/pulls/64/commits","review_comments_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/pulls/64/comments","review_comment_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/pulls/comments{/number}","comments_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/issues/64/comments","statuses_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/statuses/3bcff6edf03993745c2dc531e4055fbab6972ed1","head":{"label":"JediScout:master","ref":"master","sha":"3bcff6edf03993745c2dc531e4055fbab6972ed1","user":{"login":"JediScout","id":16035334,"avatar_url":"https://avatars.githubusercontent.com/u/16035334?v=3","gravatar_id":"","url":"https://api.github.com/users/JediScout","html_url":"https://github.com/JediScout","followers_url":"https://api.github.com/users/JediScout/followers","following_url":"https://api.github.com/users/JediScout/following{/other_user}","gists_url":"https://api.github.com/users/JediScout/gists{/gist_id}","starred_url":"https://api.github.com/users/JediScout/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JediScout/subscriptions","organizations_url":"https://api.github.com/users/JediScout/orgs","repos_url":"https://api.github.com/users/JediScout/repos","events_url":"https://api.github.com/users/JediScout/events{/privacy}","received_events_url":"https://api.github.com/users/JediScout/received_events","type":"User","site_admin":false},"repo":{"id":55220118,"name":"JavaCoreHomework","full_name":"JediScout/JavaCoreHomework","owner":{"login":"JediScout","id":16035334,"avatar_url":"https://avatars.githubusercontent.com/u/16035334?v=3","gravatar_id":"","url":"https://api.github.com/users/JediScout","html_url":"https://github.com/JediScout","followers_url":"https://api.github.com/users/JediScout/followers","following_url":"https://api.github.com/users/JediScout/following{/other_user}","gists_url":"https://api.github.com/users/JediScout/gists{/gist_id}","starred_url":"https://api.github.com/users/JediScout/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JediScout/subscriptions","organizations_url":"https://api.github.com/users/JediScout/orgs","repos_url":"https://api.github.com/users/JediScout/repos","events_url":"https://api.github.com/users/JediScout/events{/privacy}","received_events_url":"https://api.github.com/users/JediScout/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JediScout/JavaCoreHomework","description":"","fork":true,"url":"https://api.github.com/repos/JediScout/JavaCoreHomework","forks_url":"https://api.github.com/repos/JediScout/JavaCoreHomework/forks","keys_url":"https://api.github.com/repos/JediScout/JavaCoreHomework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JediScout/JavaCoreHomework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JediScout/JavaCoreHomework/teams","hooks_url":"https://api.github.com/repos/JediScout/JavaCoreHomework/hooks","issue_events_url":"https://api.github.com/repos/JediScout/JavaCoreHomework/issues/events{/number}","events_url":"https://api.github.com/repos/JediScout/JavaCoreHomework/events","assignees_url":"https://api.github.com/repos/JediScout/JavaCoreHomework/assignees{/user}","branches_url":"https://api.github.com/repos/JediScout/JavaCoreHomework/branches{/branch}","tags_url":"https://api.github.com/repos/JediScout/JavaCoreHomework/tags","blobs_url":"https://api.github.com/repos/JediScout/JavaCoreHomework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JediScout/JavaCoreHomework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JediScout/JavaCoreHomework/git/refs{/sha}","trees_url":"https://api.github.com/repos/JediScout/JavaCoreHomework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JediScout/JavaCoreHomework/statuses/{sha}","languages_url":"https://api.github.com/repos/JediScout/JavaCoreHomework/languages","stargazers_url":"https://api.github.com/repos/JediScout/JavaCoreHomework/stargazers","contributors_url":"https://api.github.com/repos/JediScout/JavaCoreHomework/contributors","subscribers_url":"https://api.github.com/repos/JediScout/JavaCoreHomework/subscribers","subscription_url":"https://api.github.com/repos/JediScout/JavaCoreHomework/subscription","commits_url":"https://api.github.com/repos/JediScout/JavaCoreHomework/commits{/sha}","git_commits_url":"https://api.github.com/repos/JediScout/JavaCoreHomework/git/commits{/sha}","comments_url":"https://api.github.com/repos/JediScout/JavaCoreHomework/comments{/number}","issue_comment_url":"https://api.github.com/repos/JediScout/JavaCoreHomework/issues/comments{/number}","contents_url":"https://api.github.com/repos/JediScout/JavaCoreHomework/contents/{+path}","compare_url":"https://api.github.com/repos/JediScout/JavaCoreHomework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JediScout/JavaCoreHomework/merges","archive_url":"https://api.github.com/repos/JediScout/JavaCoreHomework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JediScout/JavaCoreHomework/downloads","issues_url":"https://api.github.com/repos/JediScout/JavaCoreHomework/issues{/number}","pulls_url":"https://api.github.com/repos/JediScout/JavaCoreHomework/pulls{/number}","milestones_url":"https://api.github.com/repos/JediScout/JavaCoreHomework/milestones{/number}","notifications_url":"https://api.github.com/repos/JediScout/JavaCoreHomework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JediScout/JavaCoreHomework/labels{/name}","releases_url":"https://api.github.com/repos/JediScout/JavaCoreHomework/releases{/id}","deployments_url":"https://api.github.com/repos/JediScout/JavaCoreHomework/deployments","created_at":"2016-04-01T09:28:00Z","updated_at":"2016-04-01T09:28:02Z","pushed_at":"2016-04-01T09:54:55Z","git_url":"git://github.com/JediScout/JavaCoreHomework.git","ssh_url":"git@github.com:JediScout/JavaCoreHomework.git","clone_url":"https://github.com/JediScout/JavaCoreHomework.git","svn_url":"https://github.com/JediScout/JavaCoreHomework","homepage":null,"size":2502,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"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":"technicaltaskjava:master","ref":"master","sha":"d4c31067c40b94f1487b64656f7552a40edcddf3","user":{"login":"technicaltaskjava","id":17650564,"avatar_url":"https://avatars.githubusercontent.com/u/17650564?v=3","gravatar_id":"","url":"https://api.github.com/users/technicaltaskjava","html_url":"https://github.com/technicaltaskjava","followers_url":"https://api.github.com/users/technicaltaskjava/followers","following_url":"https://api.github.com/users/technicaltaskjava/following{/other_user}","gists_url":"https://api.github.com/users/technicaltaskjava/gists{/gist_id}","starred_url":"https://api.github.com/users/technicaltaskjava/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/technicaltaskjava/subscriptions","organizations_url":"https://api.github.com/users/technicaltaskjava/orgs","repos_url":"https://api.github.com/users/technicaltaskjava/repos","events_url":"https://api.github.com/users/technicaltaskjava/events{/privacy}","received_events_url":"https://api.github.com/users/technicaltaskjava/received_events","type":"User","site_admin":false},"repo":{"id":53159830,"name":"JavaCoreHomework","full_name":"technicaltaskjava/JavaCoreHomework","owner":{"login":"technicaltaskjava","id":17650564,"avatar_url":"https://avatars.githubusercontent.com/u/17650564?v=3","gravatar_id":"","url":"https://api.github.com/users/technicaltaskjava","html_url":"https://github.com/technicaltaskjava","followers_url":"https://api.github.com/users/technicaltaskjava/followers","following_url":"https://api.github.com/users/technicaltaskjava/following{/other_user}","gists_url":"https://api.github.com/users/technicaltaskjava/gists{/gist_id}","starred_url":"https://api.github.com/users/technicaltaskjava/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/technicaltaskjava/subscriptions","organizations_url":"https://api.github.com/users/technicaltaskjava/orgs","repos_url":"https://api.github.com/users/technicaltaskjava/repos","events_url":"https://api.github.com/users/technicaltaskjava/events{/privacy}","received_events_url":"https://api.github.com/users/technicaltaskjava/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/technicaltaskjava/JavaCoreHomework","description":"","fork":false,"url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework","forks_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/forks","keys_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/teams","hooks_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/hooks","issue_events_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/issues/events{/number}","events_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/events","assignees_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/assignees{/user}","branches_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/branches{/branch}","tags_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/tags","blobs_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/git/refs{/sha}","trees_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/statuses/{sha}","languages_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/languages","stargazers_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/stargazers","contributors_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/contributors","subscribers_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/subscribers","subscription_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/subscription","commits_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/commits{/sha}","git_commits_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/git/commits{/sha}","comments_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/comments{/number}","issue_comment_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/issues/comments{/number}","contents_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/contents/{+path}","compare_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/merges","archive_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/downloads","issues_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/issues{/number}","pulls_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/pulls{/number}","milestones_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/milestones{/number}","notifications_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/labels{/name}","releases_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/releases{/id}","deployments_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/deployments","created_at":"2016-03-04T19:19:59Z","updated_at":"2016-03-27T13:56:52Z","pushed_at":"2016-04-01T09:57:58Z","git_url":"git://github.com/technicaltaskjava/JavaCoreHomework.git","ssh_url":"git@github.com:technicaltaskjava/JavaCoreHomework.git","clone_url":"https://github.com/technicaltaskjava/JavaCoreHomework.git","svn_url":"https://github.com/technicaltaskjava/JavaCoreHomework","homepage":null,"size":2531,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":18,"mirror_url":null,"open_issues_count":16,"forks":18,"open_issues":16,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/pulls/64"},"html":{"href":"https://github.com/technicaltaskjava/JavaCoreHomework/pull/64"},"issue":{"href":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/issues/64"},"comments":{"href":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/issues/64/comments"},"review_comments":{"href":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/pulls/64/comments"},"review_comment":{"href":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/pulls/64/commits"},"statuses":{"href":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/statuses/3bcff6edf03993745c2dc531e4055fbab6972ed1"}}}}