{"action":"created","comment":{"url":"https://api.github.com/repos/shouldDoFine/Kirill/pulls/comments/90192266","pull_request_review_id":10707602,"id":90192266,"diff_hunk":"@@ -0,0 +1,26 @@\n+package com.netcracker.domain;\n+\n+import java.io.Serializable;\n+\n+public class Message implements Serializable{\n+    private final MessageType messageType;\n+    private final String data;\n+\n+    public Message(MessageType messageType) {\n+        this.messageType = messageType;\n+        data = null;","path":"server/src/main/java/com/netcracker/domain/Message.java","position":11,"original_position":11,"commit_id":"f6fc809246bd976a0b2a572e246107acf1358315","original_commit_id":"f6fc809246bd976a0b2a572e246107acf1358315","user":{"login":"LasTshaMAN","id":7031569,"avatar_url":"https://avatars.githubusercontent.com/u/7031569?v=3","gravatar_id":"","url":"https://api.github.com/users/LasTshaMAN","html_url":"https://github.com/LasTshaMAN","followers_url":"https://api.github.com/users/LasTshaMAN/followers","following_url":"https://api.github.com/users/LasTshaMAN/following{/other_user}","gists_url":"https://api.github.com/users/LasTshaMAN/gists{/gist_id}","starred_url":"https://api.github.com/users/LasTshaMAN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LasTshaMAN/subscriptions","organizations_url":"https://api.github.com/users/LasTshaMAN/orgs","repos_url":"https://api.github.com/users/LasTshaMAN/repos","events_url":"https://api.github.com/users/LasTshaMAN/events{/privacy}","received_events_url":"https://api.github.com/users/LasTshaMAN/received_events","type":"User","site_admin":false},"body":"&#x1F34E; **Issue**\r\nIt is kind of anti-pattern to keep null values inside your object and return nulls from method calls.\r\nYou should use \"Default Object\" pattern (which is empty string for a string) to avoid working with nulls.\r\nOr you might want to throw Runtime exception if anyone tries to getData() from objects of specific types (although, it doesn't seem to be the best fit here).","created_at":"2016-11-30T09:07:21Z","updated_at":"2016-11-30T09:07:21Z","html_url":"https://github.com/shouldDoFine/Kirill/pull/2#discussion_r90192266","pull_request_url":"https://api.github.com/repos/shouldDoFine/Kirill/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/shouldDoFine/Kirill/pulls/comments/90192266"},"html":{"href":"https://github.com/shouldDoFine/Kirill/pull/2#discussion_r90192266"},"pull_request":{"href":"https://api.github.com/repos/shouldDoFine/Kirill/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/shouldDoFine/Kirill/pulls/2","id":95795751,"html_url":"https://github.com/shouldDoFine/Kirill/pull/2","diff_url":"https://github.com/shouldDoFine/Kirill/pull/2.diff","patch_url":"https://github.com/shouldDoFine/Kirill/pull/2.patch","issue_url":"https://api.github.com/repos/shouldDoFine/Kirill/issues/2","number":2,"state":"open","locked":false,"title":"Just add some domain class plus enum","user":{"login":"Kroklike","id":23126685,"avatar_url":"https://avatars.githubusercontent.com/u/23126685?v=3","gravatar_id":"","url":"https://api.github.com/users/Kroklike","html_url":"https://github.com/Kroklike","followers_url":"https://api.github.com/users/Kroklike/followers","following_url":"https://api.github.com/users/Kroklike/following{/other_user}","gists_url":"https://api.github.com/users/Kroklike/gists{/gist_id}","starred_url":"https://api.github.com/users/Kroklike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kroklike/subscriptions","organizations_url":"https://api.github.com/users/Kroklike/orgs","repos_url":"https://api.github.com/users/Kroklike/repos","events_url":"https://api.github.com/users/Kroklike/events{/privacy}","received_events_url":"https://api.github.com/users/Kroklike/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-11-29T23:12:24Z","updated_at":"2016-11-30T09:08:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9fe5f5ea4902947fac30fea51e20b0e3f06b5989","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/shouldDoFine/Kirill/pulls/2/commits","review_comments_url":"https://api.github.com/repos/shouldDoFine/Kirill/pulls/2/comments","review_comment_url":"https://api.github.com/repos/shouldDoFine/Kirill/pulls/comments{/number}","comments_url":"https://api.github.com/repos/shouldDoFine/Kirill/issues/2/comments","statuses_url":"https://api.github.com/repos/shouldDoFine/Kirill/statuses/f6fc809246bd976a0b2a572e246107acf1358315","head":{"label":"shouldDoFine:message","ref":"message","sha":"f6fc809246bd976a0b2a572e246107acf1358315","user":{"login":"shouldDoFine","id":23137877,"avatar_url":"https://avatars.githubusercontent.com/u/23137877?v=3","gravatar_id":"","url":"https://api.github.com/users/shouldDoFine","html_url":"https://github.com/shouldDoFine","followers_url":"https://api.github.com/users/shouldDoFine/followers","following_url":"https://api.github.com/users/shouldDoFine/following{/other_user}","gists_url":"https://api.github.com/users/shouldDoFine/gists{/gist_id}","starred_url":"https://api.github.com/users/shouldDoFine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shouldDoFine/subscriptions","organizations_url":"https://api.github.com/users/shouldDoFine/orgs","repos_url":"https://api.github.com/users/shouldDoFine/repos","events_url":"https://api.github.com/users/shouldDoFine/events{/privacy}","received_events_url":"https://api.github.com/users/shouldDoFine/received_events","type":"User","site_admin":false},"repo":{"id":73072208,"name":"Kirill","full_name":"shouldDoFine/Kirill","owner":{"login":"shouldDoFine","id":23137877,"avatar_url":"https://avatars.githubusercontent.com/u/23137877?v=3","gravatar_id":"","url":"https://api.github.com/users/shouldDoFine","html_url":"https://github.com/shouldDoFine","followers_url":"https://api.github.com/users/shouldDoFine/followers","following_url":"https://api.github.com/users/shouldDoFine/following{/other_user}","gists_url":"https://api.github.com/users/shouldDoFine/gists{/gist_id}","starred_url":"https://api.github.com/users/shouldDoFine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shouldDoFine/subscriptions","organizations_url":"https://api.github.com/users/shouldDoFine/orgs","repos_url":"https://api.github.com/users/shouldDoFine/repos","events_url":"https://api.github.com/users/shouldDoFine/events{/privacy}","received_events_url":"https://api.github.com/users/shouldDoFine/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/shouldDoFine/Kirill","description":null,"fork":false,"url":"https://api.github.com/repos/shouldDoFine/Kirill","forks_url":"https://api.github.com/repos/shouldDoFine/Kirill/forks","keys_url":"https://api.github.com/repos/shouldDoFine/Kirill/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shouldDoFine/Kirill/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shouldDoFine/Kirill/teams","hooks_url":"https://api.github.com/repos/shouldDoFine/Kirill/hooks","issue_events_url":"https://api.github.com/repos/shouldDoFine/Kirill/issues/events{/number}","events_url":"https://api.github.com/repos/shouldDoFine/Kirill/events","assignees_url":"https://api.github.com/repos/shouldDoFine/Kirill/assignees{/user}","branches_url":"https://api.github.com/repos/shouldDoFine/Kirill/branches{/branch}","tags_url":"https://api.github.com/repos/shouldDoFine/Kirill/tags","blobs_url":"https://api.github.com/repos/shouldDoFine/Kirill/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shouldDoFine/Kirill/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shouldDoFine/Kirill/git/refs{/sha}","trees_url":"https://api.github.com/repos/shouldDoFine/Kirill/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shouldDoFine/Kirill/statuses/{sha}","languages_url":"https://api.github.com/repos/shouldDoFine/Kirill/languages","stargazers_url":"https://api.github.com/repos/shouldDoFine/Kirill/stargazers","contributors_url":"https://api.github.com/repos/shouldDoFine/Kirill/contributors","subscribers_url":"https://api.github.com/repos/shouldDoFine/Kirill/subscribers","subscription_url":"https://api.github.com/repos/shouldDoFine/Kirill/subscription","commits_url":"https://api.github.com/repos/shouldDoFine/Kirill/commits{/sha}","git_commits_url":"https://api.github.com/repos/shouldDoFine/Kirill/git/commits{/sha}","comments_url":"https://api.github.com/repos/shouldDoFine/Kirill/comments{/number}","issue_comment_url":"https://api.github.com/repos/shouldDoFine/Kirill/issues/comments{/number}","contents_url":"https://api.github.com/repos/shouldDoFine/Kirill/contents/{+path}","compare_url":"https://api.github.com/repos/shouldDoFine/Kirill/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shouldDoFine/Kirill/merges","archive_url":"https://api.github.com/repos/shouldDoFine/Kirill/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shouldDoFine/Kirill/downloads","issues_url":"https://api.github.com/repos/shouldDoFine/Kirill/issues{/number}","pulls_url":"https://api.github.com/repos/shouldDoFine/Kirill/pulls{/number}","milestones_url":"https://api.github.com/repos/shouldDoFine/Kirill/milestones{/number}","notifications_url":"https://api.github.com/repos/shouldDoFine/Kirill/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shouldDoFine/Kirill/labels{/name}","releases_url":"https://api.github.com/repos/shouldDoFine/Kirill/releases{/id}","deployments_url":"https://api.github.com/repos/shouldDoFine/Kirill/deployments","created_at":"2016-11-07T11:34:17Z","updated_at":"2016-11-20T22:38:16Z","pushed_at":"2016-11-29T23:12:24Z","git_url":"git://github.com/shouldDoFine/Kirill.git","ssh_url":"git@github.com:shouldDoFine/Kirill.git","clone_url":"https://github.com/shouldDoFine/Kirill.git","svn_url":"https://github.com/shouldDoFine/Kirill","homepage":null,"size":14,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"shouldDoFine:master","ref":"master","sha":"d0fce40b26b29e83a7cf57d2d15641ac62e0ba2f","user":{"login":"shouldDoFine","id":23137877,"avatar_url":"https://avatars.githubusercontent.com/u/23137877?v=3","gravatar_id":"","url":"https://api.github.com/users/shouldDoFine","html_url":"https://github.com/shouldDoFine","followers_url":"https://api.github.com/users/shouldDoFine/followers","following_url":"https://api.github.com/users/shouldDoFine/following{/other_user}","gists_url":"https://api.github.com/users/shouldDoFine/gists{/gist_id}","starred_url":"https://api.github.com/users/shouldDoFine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shouldDoFine/subscriptions","organizations_url":"https://api.github.com/users/shouldDoFine/orgs","repos_url":"https://api.github.com/users/shouldDoFine/repos","events_url":"https://api.github.com/users/shouldDoFine/events{/privacy}","received_events_url":"https://api.github.com/users/shouldDoFine/received_events","type":"User","site_admin":false},"repo":{"id":73072208,"name":"Kirill","full_name":"shouldDoFine/Kirill","owner":{"login":"shouldDoFine","id":23137877,"avatar_url":"https://avatars.githubusercontent.com/u/23137877?v=3","gravatar_id":"","url":"https://api.github.com/users/shouldDoFine","html_url":"https://github.com/shouldDoFine","followers_url":"https://api.github.com/users/shouldDoFine/followers","following_url":"https://api.github.com/users/shouldDoFine/following{/other_user}","gists_url":"https://api.github.com/users/shouldDoFine/gists{/gist_id}","starred_url":"https://api.github.com/users/shouldDoFine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shouldDoFine/subscriptions","organizations_url":"https://api.github.com/users/shouldDoFine/orgs","repos_url":"https://api.github.com/users/shouldDoFine/repos","events_url":"https://api.github.com/users/shouldDoFine/events{/privacy}","received_events_url":"https://api.github.com/users/shouldDoFine/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/shouldDoFine/Kirill","description":null,"fork":false,"url":"https://api.github.com/repos/shouldDoFine/Kirill","forks_url":"https://api.github.com/repos/shouldDoFine/Kirill/forks","keys_url":"https://api.github.com/repos/shouldDoFine/Kirill/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shouldDoFine/Kirill/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shouldDoFine/Kirill/teams","hooks_url":"https://api.github.com/repos/shouldDoFine/Kirill/hooks","issue_events_url":"https://api.github.com/repos/shouldDoFine/Kirill/issues/events{/number}","events_url":"https://api.github.com/repos/shouldDoFine/Kirill/events","assignees_url":"https://api.github.com/repos/shouldDoFine/Kirill/assignees{/user}","branches_url":"https://api.github.com/repos/shouldDoFine/Kirill/branches{/branch}","tags_url":"https://api.github.com/repos/shouldDoFine/Kirill/tags","blobs_url":"https://api.github.com/repos/shouldDoFine/Kirill/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shouldDoFine/Kirill/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shouldDoFine/Kirill/git/refs{/sha}","trees_url":"https://api.github.com/repos/shouldDoFine/Kirill/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shouldDoFine/Kirill/statuses/{sha}","languages_url":"https://api.github.com/repos/shouldDoFine/Kirill/languages","stargazers_url":"https://api.github.com/repos/shouldDoFine/Kirill/stargazers","contributors_url":"https://api.github.com/repos/shouldDoFine/Kirill/contributors","subscribers_url":"https://api.github.com/repos/shouldDoFine/Kirill/subscribers","subscription_url":"https://api.github.com/repos/shouldDoFine/Kirill/subscription","commits_url":"https://api.github.com/repos/shouldDoFine/Kirill/commits{/sha}","git_commits_url":"https://api.github.com/repos/shouldDoFine/Kirill/git/commits{/sha}","comments_url":"https://api.github.com/repos/shouldDoFine/Kirill/comments{/number}","issue_comment_url":"https://api.github.com/repos/shouldDoFine/Kirill/issues/comments{/number}","contents_url":"https://api.github.com/repos/shouldDoFine/Kirill/contents/{+path}","compare_url":"https://api.github.com/repos/shouldDoFine/Kirill/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shouldDoFine/Kirill/merges","archive_url":"https://api.github.com/repos/shouldDoFine/Kirill/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shouldDoFine/Kirill/downloads","issues_url":"https://api.github.com/repos/shouldDoFine/Kirill/issues{/number}","pulls_url":"https://api.github.com/repos/shouldDoFine/Kirill/pulls{/number}","milestones_url":"https://api.github.com/repos/shouldDoFine/Kirill/milestones{/number}","notifications_url":"https://api.github.com/repos/shouldDoFine/Kirill/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shouldDoFine/Kirill/labels{/name}","releases_url":"https://api.github.com/repos/shouldDoFine/Kirill/releases{/id}","deployments_url":"https://api.github.com/repos/shouldDoFine/Kirill/deployments","created_at":"2016-11-07T11:34:17Z","updated_at":"2016-11-20T22:38:16Z","pushed_at":"2016-11-29T23:12:24Z","git_url":"git://github.com/shouldDoFine/Kirill.git","ssh_url":"git@github.com:shouldDoFine/Kirill.git","clone_url":"https://github.com/shouldDoFine/Kirill.git","svn_url":"https://github.com/shouldDoFine/Kirill","homepage":null,"size":14,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/shouldDoFine/Kirill/pulls/2"},"html":{"href":"https://github.com/shouldDoFine/Kirill/pull/2"},"issue":{"href":"https://api.github.com/repos/shouldDoFine/Kirill/issues/2"},"comments":{"href":"https://api.github.com/repos/shouldDoFine/Kirill/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/shouldDoFine/Kirill/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/shouldDoFine/Kirill/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/shouldDoFine/Kirill/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/shouldDoFine/Kirill/statuses/f6fc809246bd976a0b2a572e246107acf1358315"}}}}
{"actor":{"display_login":"LasTshaMAN"}}