{"action":"created","comment":{"url":"https://api.github.com/repos/apache/ignite/pulls/comments/172394182","pull_request_review_id":101402381,"id":172394182,"diff_hunk":"@@ -30,24 +31,41 @@\n \n     /** {@inheritDoc} */\n     @Override public E get(int index) {\n-        if (index != 0 || element == null)\n+        if (index != 0)\n             throw new IndexOutOfBoundsException(\"Index: \" + index + \", Size: \" + size());\n \n         return element;\n     }\n \n+    /** {@inheritDoc} */\n+    @Override public boolean add(E e) {\n+        add(0, e);\n+        return true;\n+    }\n+\n     /** {@inheritDoc} */\n     @Override public void add(int index, E element) {\n-        if (element == null)\n-            throw new IllegalArgumentException(\"Cannot add null element to list\");\n-        else if (index != 0)\n+        if (index != 0)\n             throw new IllegalStateException(\"Element already added to singleton list\");\n         else\n             this.element = element;\n     }\n \n     /** {@inheritDoc} */\n     @Override public int size() {\n-        return element == null ? 0 : 1;\n+        return 1;\n+    }\n+\n+    /**\n+     * Creates filled singleton list.\n+     *\n+     * @return singleton list\n+     */\n+    @SuppressWarnings(\"unchecked\")\n+    public Collection<E> singletonList() {\n+        if (element == null) {\n+            throw new IllegalStateException(\"Singleton list is empty\");","path":"modules/core/src/main/java/org/apache/ignite/internal/util/MutableSingletonList.java","position":null,"original_position":57,"commit_id":"5b27826b9f3f2cd647a0c3cac3d645471ad2cbf2","original_commit_id":"7e83bee2a7039b1cd176870df13318555706d475","user":{"login":"pvinokurov","id":13932611,"avatar_url":"https://avatars3.githubusercontent.com/u/13932611?v=4","gravatar_id":"","url":"https://api.github.com/users/pvinokurov","html_url":"https://github.com/pvinokurov","followers_url":"https://api.github.com/users/pvinokurov/followers","following_url":"https://api.github.com/users/pvinokurov/following{/other_user}","gists_url":"https://api.github.com/users/pvinokurov/gists{/gist_id}","starred_url":"https://api.github.com/users/pvinokurov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pvinokurov/subscriptions","organizations_url":"https://api.github.com/users/pvinokurov/orgs","repos_url":"https://api.github.com/users/pvinokurov/repos","events_url":"https://api.github.com/users/pvinokurov/events{/privacy}","received_events_url":"https://api.github.com/users/pvinokurov/received_events","type":"User","site_admin":false},"body":"Fixed","created_at":"2018-03-06T02:36:29Z","updated_at":"2018-03-06T02:36:29Z","html_url":"https://github.com/apache/ignite/pull/3534#discussion_r172394182","pull_request_url":"https://api.github.com/repos/apache/ignite/pulls/3534","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/apache/ignite/pulls/comments/172394182"},"html":{"href":"https://github.com/apache/ignite/pull/3534#discussion_r172394182"},"pull_request":{"href":"https://api.github.com/repos/apache/ignite/pulls/3534"}},"in_reply_to_id":172192343},"pull_request":{"url":"https://api.github.com/repos/apache/ignite/pulls/3534","id":169612580,"html_url":"https://github.com/apache/ignite/pull/3534","diff_url":"https://github.com/apache/ignite/pull/3534.diff","patch_url":"https://github.com/apache/ignite/pull/3534.patch","issue_url":"https://api.github.com/repos/apache/ignite/issues/3534","number":3534,"state":"open","locked":false,"title":"IGNITE-7718 Fixed deserialization of binary objects in singleton map …","user":{"login":"pvinokurov","id":13932611,"avatar_url":"https://avatars3.githubusercontent.com/u/13932611?v=4","gravatar_id":"","url":"https://api.github.com/users/pvinokurov","html_url":"https://github.com/pvinokurov","followers_url":"https://api.github.com/users/pvinokurov/followers","following_url":"https://api.github.com/users/pvinokurov/following{/other_user}","gists_url":"https://api.github.com/users/pvinokurov/gists{/gist_id}","starred_url":"https://api.github.com/users/pvinokurov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pvinokurov/subscriptions","organizations_url":"https://api.github.com/users/pvinokurov/orgs","repos_url":"https://api.github.com/users/pvinokurov/repos","events_url":"https://api.github.com/users/pvinokurov/events{/privacy}","received_events_url":"https://api.github.com/users/pvinokurov/received_events","type":"User","site_admin":false},"body":"…and set.","created_at":"2018-02-16T12:27:51Z","updated_at":"2018-03-06T02:36:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9d7932ee8de62e4f5d979a8fa0b0db3b6b66ac50","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/apache/ignite/pulls/3534/commits","review_comments_url":"https://api.github.com/repos/apache/ignite/pulls/3534/comments","review_comment_url":"https://api.github.com/repos/apache/ignite/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/ignite/issues/3534/comments","statuses_url":"https://api.github.com/repos/apache/ignite/statuses/5b27826b9f3f2cd647a0c3cac3d645471ad2cbf2","head":{"label":"gridgain:ignite-7718","ref":"ignite-7718","sha":"5b27826b9f3f2cd647a0c3cac3d645471ad2cbf2","user":{"login":"gridgain","id":803592,"avatar_url":"https://avatars3.githubusercontent.com/u/803592?v=4","gravatar_id":"","url":"https://api.github.com/users/gridgain","html_url":"https://github.com/gridgain","followers_url":"https://api.github.com/users/gridgain/followers","following_url":"https://api.github.com/users/gridgain/following{/other_user}","gists_url":"https://api.github.com/users/gridgain/gists{/gist_id}","starred_url":"https://api.github.com/users/gridgain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gridgain/subscriptions","organizations_url":"https://api.github.com/users/gridgain/orgs","repos_url":"https://api.github.com/users/gridgain/repos","events_url":"https://api.github.com/users/gridgain/events{/privacy}","received_events_url":"https://api.github.com/users/gridgain/received_events","type":"Organization","site_admin":false},"repo":{"id":32432793,"name":"apache-ignite","full_name":"gridgain/apache-ignite","owner":{"login":"gridgain","id":803592,"avatar_url":"https://avatars3.githubusercontent.com/u/803592?v=4","gravatar_id":"","url":"https://api.github.com/users/gridgain","html_url":"https://github.com/gridgain","followers_url":"https://api.github.com/users/gridgain/followers","following_url":"https://api.github.com/users/gridgain/following{/other_user}","gists_url":"https://api.github.com/users/gridgain/gists{/gist_id}","starred_url":"https://api.github.com/users/gridgain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gridgain/subscriptions","organizations_url":"https://api.github.com/users/gridgain/orgs","repos_url":"https://api.github.com/users/gridgain/repos","events_url":"https://api.github.com/users/gridgain/events{/privacy}","received_events_url":"https://api.github.com/users/gridgain/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gridgain/apache-ignite","description":"Mirror of Apache Ignite","fork":true,"url":"https://api.github.com/repos/gridgain/apache-ignite","forks_url":"https://api.github.com/repos/gridgain/apache-ignite/forks","keys_url":"https://api.github.com/repos/gridgain/apache-ignite/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gridgain/apache-ignite/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gridgain/apache-ignite/teams","hooks_url":"https://api.github.com/repos/gridgain/apache-ignite/hooks","issue_events_url":"https://api.github.com/repos/gridgain/apache-ignite/issues/events{/number}","events_url":"https://api.github.com/repos/gridgain/apache-ignite/events","assignees_url":"https://api.github.com/repos/gridgain/apache-ignite/assignees{/user}","branches_url":"https://api.github.com/repos/gridgain/apache-ignite/branches{/branch}","tags_url":"https://api.github.com/repos/gridgain/apache-ignite/tags","blobs_url":"https://api.github.com/repos/gridgain/apache-ignite/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gridgain/apache-ignite/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gridgain/apache-ignite/git/refs{/sha}","trees_url":"https://api.github.com/repos/gridgain/apache-ignite/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gridgain/apache-ignite/statuses/{sha}","languages_url":"https://api.github.com/repos/gridgain/apache-ignite/languages","stargazers_url":"https://api.github.com/repos/gridgain/apache-ignite/stargazers","contributors_url":"https://api.github.com/repos/gridgain/apache-ignite/contributors","subscribers_url":"https://api.github.com/repos/gridgain/apache-ignite/subscribers","subscription_url":"https://api.github.com/repos/gridgain/apache-ignite/subscription","commits_url":"https://api.github.com/repos/gridgain/apache-ignite/commits{/sha}","git_commits_url":"https://api.github.com/repos/gridgain/apache-ignite/git/commits{/sha}","comments_url":"https://api.github.com/repos/gridgain/apache-ignite/comments{/number}","issue_comment_url":"https://api.github.com/repos/gridgain/apache-ignite/issues/comments{/number}","contents_url":"https://api.github.com/repos/gridgain/apache-ignite/contents/{+path}","compare_url":"https://api.github.com/repos/gridgain/apache-ignite/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gridgain/apache-ignite/merges","archive_url":"https://api.github.com/repos/gridgain/apache-ignite/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gridgain/apache-ignite/downloads","issues_url":"https://api.github.com/repos/gridgain/apache-ignite/issues{/number}","pulls_url":"https://api.github.com/repos/gridgain/apache-ignite/pulls{/number}","milestones_url":"https://api.github.com/repos/gridgain/apache-ignite/milestones{/number}","notifications_url":"https://api.github.com/repos/gridgain/apache-ignite/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gridgain/apache-ignite/labels{/name}","releases_url":"https://api.github.com/repos/gridgain/apache-ignite/releases{/id}","deployments_url":"https://api.github.com/repos/gridgain/apache-ignite/deployments","created_at":"2015-03-18T02:19:44Z","updated_at":"2018-02-14T11:43:58Z","pushed_at":"2018-03-06T02:27:12Z","git_url":"git://github.com/gridgain/apache-ignite.git","ssh_url":"git@github.com:gridgain/apache-ignite.git","clone_url":"https://github.com/gridgain/apache-ignite.git","svn_url":"https://github.com/gridgain/apache-ignite","homepage":"","size":314198,"stargazers_count":17,"watchers_count":17,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":6,"mirror_url":null,"archived":false,"open_issues_count":14,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":6,"open_issues":14,"watchers":17,"default_branch":"sprint-2"}},"base":{"label":"apache:master","ref":"master","sha":"768063c2b75b99f3d805daca7f20862d09671f33","user":{"login":"apache","id":47359,"avatar_url":"https://avatars0.githubusercontent.com/u/47359?v=4","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"repo":{"id":31006158,"name":"ignite","full_name":"apache/ignite","owner":{"login":"apache","id":47359,"avatar_url":"https://avatars0.githubusercontent.com/u/47359?v=4","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apache/ignite","description":"Mirror of Apache Ignite","fork":false,"url":"https://api.github.com/repos/apache/ignite","forks_url":"https://api.github.com/repos/apache/ignite/forks","keys_url":"https://api.github.com/repos/apache/ignite/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/ignite/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/ignite/teams","hooks_url":"https://api.github.com/repos/apache/ignite/hooks","issue_events_url":"https://api.github.com/repos/apache/ignite/issues/events{/number}","events_url":"https://api.github.com/repos/apache/ignite/events","assignees_url":"https://api.github.com/repos/apache/ignite/assignees{/user}","branches_url":"https://api.github.com/repos/apache/ignite/branches{/branch}","tags_url":"https://api.github.com/repos/apache/ignite/tags","blobs_url":"https://api.github.com/repos/apache/ignite/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/ignite/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/ignite/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/ignite/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/ignite/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/ignite/languages","stargazers_url":"https://api.github.com/repos/apache/ignite/stargazers","contributors_url":"https://api.github.com/repos/apache/ignite/contributors","subscribers_url":"https://api.github.com/repos/apache/ignite/subscribers","subscription_url":"https://api.github.com/repos/apache/ignite/subscription","commits_url":"https://api.github.com/repos/apache/ignite/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/ignite/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/ignite/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/ignite/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/ignite/contents/{+path}","compare_url":"https://api.github.com/repos/apache/ignite/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/ignite/merges","archive_url":"https://api.github.com/repos/apache/ignite/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/ignite/downloads","issues_url":"https://api.github.com/repos/apache/ignite/issues{/number}","pulls_url":"https://api.github.com/repos/apache/ignite/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/ignite/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/ignite/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/ignite/labels{/name}","releases_url":"https://api.github.com/repos/apache/ignite/releases{/id}","deployments_url":"https://api.github.com/repos/apache/ignite/deployments","created_at":"2015-02-19T08:00:05Z","updated_at":"2018-03-06T01:50:34Z","pushed_at":"2018-03-06T02:27:17Z","git_url":"git://github.com/apache/ignite.git","ssh_url":"git@github.com:apache/ignite.git","clone_url":"https://github.com/apache/ignite.git","svn_url":"https://github.com/apache/ignite","homepage":"","size":261104,"stargazers_count":1528,"watchers_count":1528,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":857,"mirror_url":null,"archived":false,"open_issues_count":1010,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":857,"open_issues":1010,"watchers":1528,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/ignite/pulls/3534"},"html":{"href":"https://github.com/apache/ignite/pull/3534"},"issue":{"href":"https://api.github.com/repos/apache/ignite/issues/3534"},"comments":{"href":"https://api.github.com/repos/apache/ignite/issues/3534/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/ignite/pulls/3534/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/ignite/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/ignite/pulls/3534/commits"},"statuses":{"href":"https://api.github.com/repos/apache/ignite/statuses/5b27826b9f3f2cd647a0c3cac3d645471ad2cbf2"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"pvinokurov"}}