{"action":"created","comment":{"url":"https://api.github.com/repos/sanya1111/KP_Suggestions/pulls/comments/55920384","id":55920384,"diff_hunk":"@@ -82,171 +83,196 @@ public void closeAll() throws SQLException {\n         }\n     }\n \n-    public synchronized boolean executeUpdate(String query) {\n+    public synchronized void executeUpdate(String query) throws SQLException{\n         if (statement == null) {\n-            try {\n-                statement = connect.createStatement();\n-            } catch (SQLException excp) {\n-                return false;\n-            }\n+            statement = connect.createStatement();\n         }\n-        try {\n-            statement.execute(query);\n-        } catch (SQLException excp) {\n-            return false;\n-        }\n-        return true;\n+        statement.execute(query);\n     }\n \n-    // returns null if failed\n-    public synchronized ResultSet executeQuery(String query) {\n+    public synchronized ResultSet executeQuery(String query) throws SQLException{\n         if (statement == null) {\n-            try {\n-                statement = connect.createStatement();\n-            } catch (SQLException excp) {\n-                return null;\n-            }\n-        }\n-        try {\n-            ResultSet ret = statement.executeQuery(query);\n-            return ret;\n-        } catch (SQLException excp) {\n-            return null;\n+            statement = connect.createStatement();\n         }\n+        return statement.executeQuery(query);\n     }\n \n-    public boolean DropDatabase() {\n-        String query_drop_scheme = \"DROP SCHEMA public cascade\";\n-        String create_scheme = \"create schema public\";\n-        return executeUpdate(query_drop_scheme) && executeUpdate(create_scheme);\n+    public void DropDatabase() throws SQLException {","path":"src/ru/kpsug/db/DBOperator.java","position":139,"original_position":139,"commit_id":"2949e2d6d6b7cf7ce66873eef561962fcf30aa1e","original_commit_id":"2949e2d6d6b7cf7ce66873eef561962fcf30aa1e","user":{"login":"eabatalov","id":623590,"avatar_url":"https://avatars.githubusercontent.com/u/623590?v=3","gravatar_id":"","url":"https://api.github.com/users/eabatalov","html_url":"https://github.com/eabatalov","followers_url":"https://api.github.com/users/eabatalov/followers","following_url":"https://api.github.com/users/eabatalov/following{/other_user}","gists_url":"https://api.github.com/users/eabatalov/gists{/gist_id}","starred_url":"https://api.github.com/users/eabatalov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eabatalov/subscriptions","organizations_url":"https://api.github.com/users/eabatalov/orgs","repos_url":"https://api.github.com/users/eabatalov/repos","events_url":"https://api.github.com/users/eabatalov/events{/privacy}","received_events_url":"https://api.github.com/users/eabatalov/received_events","type":"User","site_admin":false},"body":"Why DropDatabase is called like a class?\r\nWhy not dropDatabase?","created_at":"2016-03-12T11:45:24Z","updated_at":"2016-03-12T11:45:24Z","html_url":"https://github.com/sanya1111/KP_Suggestions/pull/2#discussion_r55920384","pull_request_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/sanya1111/KP_Suggestions/pulls/comments/55920384"},"html":{"href":"https://github.com/sanya1111/KP_Suggestions/pull/2#discussion_r55920384"},"pull_request":{"href":"https://api.github.com/repos/sanya1111/KP_Suggestions/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/sanya1111/KP_Suggestions/pulls/2","id":62638151,"html_url":"https://github.com/sanya1111/KP_Suggestions/pull/2","diff_url":"https://github.com/sanya1111/KP_Suggestions/pull/2.diff","patch_url":"https://github.com/sanya1111/KP_Suggestions/pull/2.patch","issue_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/issues/2","number":2,"state":"open","locked":false,"title":"Review 2","user":{"login":"eabatalov","id":623590,"avatar_url":"https://avatars.githubusercontent.com/u/623590?v=3","gravatar_id":"","url":"https://api.github.com/users/eabatalov","html_url":"https://github.com/eabatalov","followers_url":"https://api.github.com/users/eabatalov/followers","following_url":"https://api.github.com/users/eabatalov/following{/other_user}","gists_url":"https://api.github.com/users/eabatalov/gists{/gist_id}","starred_url":"https://api.github.com/users/eabatalov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eabatalov/subscriptions","organizations_url":"https://api.github.com/users/eabatalov/orgs","repos_url":"https://api.github.com/users/eabatalov/repos","events_url":"https://api.github.com/users/eabatalov/events{/privacy}","received_events_url":"https://api.github.com/users/eabatalov/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-12T10:38:17Z","updated_at":"2016-03-12T11:45:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ea2501bd71f5ca1583dd4c588470bc4b182534c4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/pulls/2/commits","review_comments_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/pulls/2/comments","review_comment_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/issues/2/comments","statuses_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/statuses/2949e2d6d6b7cf7ce66873eef561962fcf30aa1e","head":{"label":"sanya1111:review_2","ref":"review_2","sha":"2949e2d6d6b7cf7ce66873eef561962fcf30aa1e","user":{"login":"sanya1111","id":8517156,"avatar_url":"https://avatars.githubusercontent.com/u/8517156?v=3","gravatar_id":"","url":"https://api.github.com/users/sanya1111","html_url":"https://github.com/sanya1111","followers_url":"https://api.github.com/users/sanya1111/followers","following_url":"https://api.github.com/users/sanya1111/following{/other_user}","gists_url":"https://api.github.com/users/sanya1111/gists{/gist_id}","starred_url":"https://api.github.com/users/sanya1111/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanya1111/subscriptions","organizations_url":"https://api.github.com/users/sanya1111/orgs","repos_url":"https://api.github.com/users/sanya1111/repos","events_url":"https://api.github.com/users/sanya1111/events{/privacy}","received_events_url":"https://api.github.com/users/sanya1111/received_events","type":"User","site_admin":false},"repo":{"id":44680753,"name":"KP_Suggestions","full_name":"sanya1111/KP_Suggestions","owner":{"login":"sanya1111","id":8517156,"avatar_url":"https://avatars.githubusercontent.com/u/8517156?v=3","gravatar_id":"","url":"https://api.github.com/users/sanya1111","html_url":"https://github.com/sanya1111","followers_url":"https://api.github.com/users/sanya1111/followers","following_url":"https://api.github.com/users/sanya1111/following{/other_user}","gists_url":"https://api.github.com/users/sanya1111/gists{/gist_id}","starred_url":"https://api.github.com/users/sanya1111/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanya1111/subscriptions","organizations_url":"https://api.github.com/users/sanya1111/orgs","repos_url":"https://api.github.com/users/sanya1111/repos","events_url":"https://api.github.com/users/sanya1111/events{/privacy}","received_events_url":"https://api.github.com/users/sanya1111/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sanya1111/KP_Suggestions","description":"","fork":false,"url":"https://api.github.com/repos/sanya1111/KP_Suggestions","forks_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/forks","keys_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/teams","hooks_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/hooks","issue_events_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/issues/events{/number}","events_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/events","assignees_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/assignees{/user}","branches_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/branches{/branch}","tags_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/tags","blobs_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/git/refs{/sha}","trees_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/statuses/{sha}","languages_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/languages","stargazers_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/stargazers","contributors_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/contributors","subscribers_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/subscribers","subscription_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/subscription","commits_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/commits{/sha}","git_commits_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/git/commits{/sha}","comments_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/comments{/number}","issue_comment_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/issues/comments{/number}","contents_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/contents/{+path}","compare_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/merges","archive_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/downloads","issues_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/issues{/number}","pulls_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/pulls{/number}","milestones_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/milestones{/number}","notifications_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/labels{/name}","releases_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/releases{/id}","deployments_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/deployments","created_at":"2015-10-21T14:11:53Z","updated_at":"2016-03-08T15:53:27Z","pushed_at":"2016-03-12T10:38:19Z","git_url":"git://github.com/sanya1111/KP_Suggestions.git","ssh_url":"git@github.com:sanya1111/KP_Suggestions.git","clone_url":"https://github.com/sanya1111/KP_Suggestions.git","svn_url":"https://github.com/sanya1111/KP_Suggestions","homepage":null,"size":5722,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"sanya1111:review","ref":"review","sha":"a2b6fecb785708552a12316d570007b1ed507cbb","user":{"login":"sanya1111","id":8517156,"avatar_url":"https://avatars.githubusercontent.com/u/8517156?v=3","gravatar_id":"","url":"https://api.github.com/users/sanya1111","html_url":"https://github.com/sanya1111","followers_url":"https://api.github.com/users/sanya1111/followers","following_url":"https://api.github.com/users/sanya1111/following{/other_user}","gists_url":"https://api.github.com/users/sanya1111/gists{/gist_id}","starred_url":"https://api.github.com/users/sanya1111/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanya1111/subscriptions","organizations_url":"https://api.github.com/users/sanya1111/orgs","repos_url":"https://api.github.com/users/sanya1111/repos","events_url":"https://api.github.com/users/sanya1111/events{/privacy}","received_events_url":"https://api.github.com/users/sanya1111/received_events","type":"User","site_admin":false},"repo":{"id":44680753,"name":"KP_Suggestions","full_name":"sanya1111/KP_Suggestions","owner":{"login":"sanya1111","id":8517156,"avatar_url":"https://avatars.githubusercontent.com/u/8517156?v=3","gravatar_id":"","url":"https://api.github.com/users/sanya1111","html_url":"https://github.com/sanya1111","followers_url":"https://api.github.com/users/sanya1111/followers","following_url":"https://api.github.com/users/sanya1111/following{/other_user}","gists_url":"https://api.github.com/users/sanya1111/gists{/gist_id}","starred_url":"https://api.github.com/users/sanya1111/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanya1111/subscriptions","organizations_url":"https://api.github.com/users/sanya1111/orgs","repos_url":"https://api.github.com/users/sanya1111/repos","events_url":"https://api.github.com/users/sanya1111/events{/privacy}","received_events_url":"https://api.github.com/users/sanya1111/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sanya1111/KP_Suggestions","description":"","fork":false,"url":"https://api.github.com/repos/sanya1111/KP_Suggestions","forks_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/forks","keys_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/teams","hooks_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/hooks","issue_events_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/issues/events{/number}","events_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/events","assignees_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/assignees{/user}","branches_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/branches{/branch}","tags_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/tags","blobs_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/git/refs{/sha}","trees_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/statuses/{sha}","languages_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/languages","stargazers_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/stargazers","contributors_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/contributors","subscribers_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/subscribers","subscription_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/subscription","commits_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/commits{/sha}","git_commits_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/git/commits{/sha}","comments_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/comments{/number}","issue_comment_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/issues/comments{/number}","contents_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/contents/{+path}","compare_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/merges","archive_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/downloads","issues_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/issues{/number}","pulls_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/pulls{/number}","milestones_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/milestones{/number}","notifications_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/labels{/name}","releases_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/releases{/id}","deployments_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/deployments","created_at":"2015-10-21T14:11:53Z","updated_at":"2016-03-08T15:53:27Z","pushed_at":"2016-03-12T10:38:19Z","git_url":"git://github.com/sanya1111/KP_Suggestions.git","ssh_url":"git@github.com:sanya1111/KP_Suggestions.git","clone_url":"https://github.com/sanya1111/KP_Suggestions.git","svn_url":"https://github.com/sanya1111/KP_Suggestions","homepage":null,"size":5722,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sanya1111/KP_Suggestions/pulls/2"},"html":{"href":"https://github.com/sanya1111/KP_Suggestions/pull/2"},"issue":{"href":"https://api.github.com/repos/sanya1111/KP_Suggestions/issues/2"},"comments":{"href":"https://api.github.com/repos/sanya1111/KP_Suggestions/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/sanya1111/KP_Suggestions/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/sanya1111/KP_Suggestions/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sanya1111/KP_Suggestions/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/sanya1111/KP_Suggestions/statuses/2949e2d6d6b7cf7ce66873eef561962fcf30aa1e"}}}}