{"action":"created","comment":{"url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/comments/91684931","pull_request_review_id":12194629,"id":91684931,"diff_hunk":"@@ -0,0 +1,46 @@\n+package ru.unn.agile.SquareCalculator.Model;\n+\n+/**\n+ * Created by Дмитрий on 20.11.2016.\n+ */\n+public class SquareCalculator {\n+    public double getSphereSquare(double radius) {\n+\n+        checkParams(\"Radius must not be negative!\", radius);\n+\n+        return SquareCalculatorConstants.SPHERECONST * Math.PI * radius * radius;\n+\n+    }\n+\n+    public double getConeSquare(double radius, double rulingofcone) {\n+        checkParams(\"Radius and Ruling Of Cone must not be negative!\", radius , rulingofcone);\n+        return Math.PI * radius * ( radius + rulingofcone );\n+    }\n+\n+    public double getCubeSquare(double lenght) {\n+        checkParams(\"Lenght must not be negative!\" , lenght);\n+        return SquareCalculatorConstants.CUBECONST * lenght * lenght;\n+    }\n+\n+\n+\n+    public double getCylinderSquare(double radius , double height) {\n+        checkParams(\"Radius and height must not be negative!\", radius , height);\n+        return SquareCalculatorConstants.CYLINDERCONST * Math.PI * radius * ( radius + height );\n+    }\n+\n+    public double getParallelepipedSquare(double height, double lenght, double width) {\n+        checkParams(\"height , lenght and width must not be negative!\", height, lenght, width);\n+        return SquareCalculatorConstants.PARALLELEPIPEDCONST * ( height * lenght + height * width + lenght * width );\n+    }\n+\n+\n+    private void checkParams(final String message, final double... params) {\n+        for (double param : params) {\n+            if (param < 0) {\n+                throw new IllegalArgumentException(message);","path":"code/voronin-dmitry/src/main/java/ru/unn/agile/SquareCalculator/Model/SquareCalculator.java","position":41,"original_position":41,"commit_id":"3e33527879ccf1fab786f2edcfa0cd5afc40df00","original_commit_id":"3e33527879ccf1fab786f2edcfa0cd5afc40df00","user":{"login":"DariaKolistratova","id":6852854,"avatar_url":"https://avatars.githubusercontent.com/u/6852854?v=3","gravatar_id":"","url":"https://api.github.com/users/DariaKolistratova","html_url":"https://github.com/DariaKolistratova","followers_url":"https://api.github.com/users/DariaKolistratova/followers","following_url":"https://api.github.com/users/DariaKolistratova/following{/other_user}","gists_url":"https://api.github.com/users/DariaKolistratova/gists{/gist_id}","starred_url":"https://api.github.com/users/DariaKolistratova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DariaKolistratova/subscriptions","organizations_url":"https://api.github.com/users/DariaKolistratova/orgs","repos_url":"https://api.github.com/users/DariaKolistratova/repos","events_url":"https://api.github.com/users/DariaKolistratova/events{/privacy}","received_events_url":"https://api.github.com/users/DariaKolistratova/received_events","type":"User","site_admin":false},"body":"May be it is better to print universal \"Parameter must not be negative, got: number\" instead of passing the similar message. It only seems to me, make as you wish. ","created_at":"2016-12-09T09:43:55Z","updated_at":"2016-12-09T09:43:55Z","html_url":"https://github.com/UNN-VMK-Software/agile-course-practice/pull/153#discussion_r91684931","pull_request_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/153","_links":{"self":{"href":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/comments/91684931"},"html":{"href":"https://github.com/UNN-VMK-Software/agile-course-practice/pull/153#discussion_r91684931"},"pull_request":{"href":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/153"}}},"pull_request":{"url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/153","id":97208517,"html_url":"https://github.com/UNN-VMK-Software/agile-course-practice/pull/153","diff_url":"https://github.com/UNN-VMK-Software/agile-course-practice/pull/153.diff","patch_url":"https://github.com/UNN-VMK-Software/agile-course-practice/pull/153.patch","issue_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/issues/153","number":153,"state":"open","locked":false,"title":"Воронин Дмитрий - Лаб1","user":{"login":"dmitryvoronin05dec","id":23368597,"avatar_url":"https://avatars.githubusercontent.com/u/23368597?v=3","gravatar_id":"","url":"https://api.github.com/users/dmitryvoronin05dec","html_url":"https://github.com/dmitryvoronin05dec","followers_url":"https://api.github.com/users/dmitryvoronin05dec/followers","following_url":"https://api.github.com/users/dmitryvoronin05dec/following{/other_user}","gists_url":"https://api.github.com/users/dmitryvoronin05dec/gists{/gist_id}","starred_url":"https://api.github.com/users/dmitryvoronin05dec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmitryvoronin05dec/subscriptions","organizations_url":"https://api.github.com/users/dmitryvoronin05dec/orgs","repos_url":"https://api.github.com/users/dmitryvoronin05dec/repos","events_url":"https://api.github.com/users/dmitryvoronin05dec/events{/privacy}","received_events_url":"https://api.github.com/users/dmitryvoronin05dec/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-12-08T21:54:24Z","updated_at":"2016-12-09T09:52:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ef09ac658db72c4e4a61ecab4cdf79ec979fd283","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/153/commits","review_comments_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/153/comments","review_comment_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/comments{/number}","comments_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/issues/153/comments","statuses_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/statuses/3e33527879ccf1fab786f2edcfa0cd5afc40df00","head":{"label":"dmitryvoronin05dec:voronin-dmitry","ref":"voronin-dmitry","sha":"3e33527879ccf1fab786f2edcfa0cd5afc40df00","user":{"login":"dmitryvoronin05dec","id":23368597,"avatar_url":"https://avatars.githubusercontent.com/u/23368597?v=3","gravatar_id":"","url":"https://api.github.com/users/dmitryvoronin05dec","html_url":"https://github.com/dmitryvoronin05dec","followers_url":"https://api.github.com/users/dmitryvoronin05dec/followers","following_url":"https://api.github.com/users/dmitryvoronin05dec/following{/other_user}","gists_url":"https://api.github.com/users/dmitryvoronin05dec/gists{/gist_id}","starred_url":"https://api.github.com/users/dmitryvoronin05dec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmitryvoronin05dec/subscriptions","organizations_url":"https://api.github.com/users/dmitryvoronin05dec/orgs","repos_url":"https://api.github.com/users/dmitryvoronin05dec/repos","events_url":"https://api.github.com/users/dmitryvoronin05dec/events{/privacy}","received_events_url":"https://api.github.com/users/dmitryvoronin05dec/received_events","type":"User","site_admin":false},"repo":{"id":73330467,"name":"agile-course-practice","full_name":"dmitryvoronin05dec/agile-course-practice","owner":{"login":"dmitryvoronin05dec","id":23368597,"avatar_url":"https://avatars.githubusercontent.com/u/23368597?v=3","gravatar_id":"","url":"https://api.github.com/users/dmitryvoronin05dec","html_url":"https://github.com/dmitryvoronin05dec","followers_url":"https://api.github.com/users/dmitryvoronin05dec/followers","following_url":"https://api.github.com/users/dmitryvoronin05dec/following{/other_user}","gists_url":"https://api.github.com/users/dmitryvoronin05dec/gists{/gist_id}","starred_url":"https://api.github.com/users/dmitryvoronin05dec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmitryvoronin05dec/subscriptions","organizations_url":"https://api.github.com/users/dmitryvoronin05dec/orgs","repos_url":"https://api.github.com/users/dmitryvoronin05dec/repos","events_url":"https://api.github.com/users/dmitryvoronin05dec/events{/privacy}","received_events_url":"https://api.github.com/users/dmitryvoronin05dec/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dmitryvoronin05dec/agile-course-practice","description":null,"fork":true,"url":"https://api.github.com/repos/dmitryvoronin05dec/agile-course-practice","forks_url":"https://api.github.com/repos/dmitryvoronin05dec/agile-course-practice/forks","keys_url":"https://api.github.com/repos/dmitryvoronin05dec/agile-course-practice/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dmitryvoronin05dec/agile-course-practice/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dmitryvoronin05dec/agile-course-practice/teams","hooks_url":"https://api.github.com/repos/dmitryvoronin05dec/agile-course-practice/hooks","issue_events_url":"https://api.github.com/repos/dmitryvoronin05dec/agile-course-practice/issues/events{/number}","events_url":"https://api.github.com/repos/dmitryvoronin05dec/agile-course-practice/events","assignees_url":"https://api.github.com/repos/dmitryvoronin05dec/agile-course-practice/assignees{/user}","branches_url":"https://api.github.com/repos/dmitryvoronin05dec/agile-course-practice/branches{/branch}","tags_url":"https://api.github.com/repos/dmitryvoronin05dec/agile-course-practice/tags","blobs_url":"https://api.github.com/repos/dmitryvoronin05dec/agile-course-practice/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dmitryvoronin05dec/agile-course-practice/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dmitryvoronin05dec/agile-course-practice/git/refs{/sha}","trees_url":"https://api.github.com/repos/dmitryvoronin05dec/agile-course-practice/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dmitryvoronin05dec/agile-course-practice/statuses/{sha}","languages_url":"https://api.github.com/repos/dmitryvoronin05dec/agile-course-practice/languages","stargazers_url":"https://api.github.com/repos/dmitryvoronin05dec/agile-course-practice/stargazers","contributors_url":"https://api.github.com/repos/dmitryvoronin05dec/agile-course-practice/contributors","subscribers_url":"https://api.github.com/repos/dmitryvoronin05dec/agile-course-practice/subscribers","subscription_url":"https://api.github.com/repos/dmitryvoronin05dec/agile-course-practice/subscription","commits_url":"https://api.github.com/repos/dmitryvoronin05dec/agile-course-practice/commits{/sha}","git_commits_url":"https://api.github.com/repos/dmitryvoronin05dec/agile-course-practice/git/commits{/sha}","comments_url":"https://api.github.com/repos/dmitryvoronin05dec/agile-course-practice/comments{/number}","issue_comment_url":"https://api.github.com/repos/dmitryvoronin05dec/agile-course-practice/issues/comments{/number}","contents_url":"https://api.github.com/repos/dmitryvoronin05dec/agile-course-practice/contents/{+path}","compare_url":"https://api.github.com/repos/dmitryvoronin05dec/agile-course-practice/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dmitryvoronin05dec/agile-course-practice/merges","archive_url":"https://api.github.com/repos/dmitryvoronin05dec/agile-course-practice/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dmitryvoronin05dec/agile-course-practice/downloads","issues_url":"https://api.github.com/repos/dmitryvoronin05dec/agile-course-practice/issues{/number}","pulls_url":"https://api.github.com/repos/dmitryvoronin05dec/agile-course-practice/pulls{/number}","milestones_url":"https://api.github.com/repos/dmitryvoronin05dec/agile-course-practice/milestones{/number}","notifications_url":"https://api.github.com/repos/dmitryvoronin05dec/agile-course-practice/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dmitryvoronin05dec/agile-course-practice/labels{/name}","releases_url":"https://api.github.com/repos/dmitryvoronin05dec/agile-course-practice/releases{/id}","deployments_url":"https://api.github.com/repos/dmitryvoronin05dec/agile-course-practice/deployments","created_at":"2016-11-09T23:41:27Z","updated_at":"2016-11-09T23:41:28Z","pushed_at":"2016-12-08T21:51:38Z","git_url":"git://github.com/dmitryvoronin05dec/agile-course-practice.git","ssh_url":"git@github.com:dmitryvoronin05dec/agile-course-practice.git","clone_url":"https://github.com/dmitryvoronin05dec/agile-course-practice.git","svn_url":"https://github.com/dmitryvoronin05dec/agile-course-practice","homepage":null,"size":620,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"UNN-VMK-Software:master","ref":"master","sha":"6ae730daf3d628098e0094621a748488c324ae8c","user":{"login":"UNN-VMK-Software","id":5463209,"avatar_url":"https://avatars.githubusercontent.com/u/5463209?v=3","gravatar_id":"","url":"https://api.github.com/users/UNN-VMK-Software","html_url":"https://github.com/UNN-VMK-Software","followers_url":"https://api.github.com/users/UNN-VMK-Software/followers","following_url":"https://api.github.com/users/UNN-VMK-Software/following{/other_user}","gists_url":"https://api.github.com/users/UNN-VMK-Software/gists{/gist_id}","starred_url":"https://api.github.com/users/UNN-VMK-Software/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UNN-VMK-Software/subscriptions","organizations_url":"https://api.github.com/users/UNN-VMK-Software/orgs","repos_url":"https://api.github.com/users/UNN-VMK-Software/repos","events_url":"https://api.github.com/users/UNN-VMK-Software/events{/privacy}","received_events_url":"https://api.github.com/users/UNN-VMK-Software/received_events","type":"Organization","site_admin":false},"repo":{"id":72347248,"name":"agile-course-practice","full_name":"UNN-VMK-Software/agile-course-practice","owner":{"login":"UNN-VMK-Software","id":5463209,"avatar_url":"https://avatars.githubusercontent.com/u/5463209?v=3","gravatar_id":"","url":"https://api.github.com/users/UNN-VMK-Software","html_url":"https://github.com/UNN-VMK-Software","followers_url":"https://api.github.com/users/UNN-VMK-Software/followers","following_url":"https://api.github.com/users/UNN-VMK-Software/following{/other_user}","gists_url":"https://api.github.com/users/UNN-VMK-Software/gists{/gist_id}","starred_url":"https://api.github.com/users/UNN-VMK-Software/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UNN-VMK-Software/subscriptions","organizations_url":"https://api.github.com/users/UNN-VMK-Software/orgs","repos_url":"https://api.github.com/users/UNN-VMK-Software/repos","events_url":"https://api.github.com/users/UNN-VMK-Software/events{/privacy}","received_events_url":"https://api.github.com/users/UNN-VMK-Software/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/UNN-VMK-Software/agile-course-practice","description":null,"fork":false,"url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice","forks_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/forks","keys_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/keys{/key_id}","collaborators_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/teams","hooks_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/hooks","issue_events_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/issues/events{/number}","events_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/events","assignees_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/assignees{/user}","branches_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/branches{/branch}","tags_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/tags","blobs_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/git/refs{/sha}","trees_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/git/trees{/sha}","statuses_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/statuses/{sha}","languages_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/languages","stargazers_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/stargazers","contributors_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/contributors","subscribers_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/subscribers","subscription_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/subscription","commits_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/commits{/sha}","git_commits_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/git/commits{/sha}","comments_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/comments{/number}","issue_comment_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/issues/comments{/number}","contents_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/contents/{+path}","compare_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/compare/{base}...{head}","merges_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/merges","archive_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/downloads","issues_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/issues{/number}","pulls_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls{/number}","milestones_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/milestones{/number}","notifications_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/labels{/name}","releases_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/releases{/id}","deployments_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/deployments","created_at":"2016-10-30T12:11:26Z","updated_at":"2016-10-30T12:11:39Z","pushed_at":"2016-12-08T21:54:24Z","git_url":"git://github.com/UNN-VMK-Software/agile-course-practice.git","ssh_url":"git@github.com:UNN-VMK-Software/agile-course-practice.git","clone_url":"https://github.com/UNN-VMK-Software/agile-course-practice.git","svn_url":"https://github.com/UNN-VMK-Software/agile-course-practice","homepage":null,"size":1383,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":38,"mirror_url":null,"open_issues_count":8,"forks":38,"open_issues":8,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/153"},"html":{"href":"https://github.com/UNN-VMK-Software/agile-course-practice/pull/153"},"issue":{"href":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/issues/153"},"comments":{"href":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/issues/153/comments"},"review_comments":{"href":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/153/comments"},"review_comment":{"href":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/153/commits"},"statuses":{"href":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/statuses/3e33527879ccf1fab786f2edcfa0cd5afc40df00"}}}}
{"actor":{"display_login":"DariaKolistratova"}}