{"action":"created","comment":{"url":"https://api.github.com/repos/pushtorefresh/storio/pulls/comments/27771239","id":27771239,"diff_hunk":"@@ -2,28 +2,81 @@\n \n import android.support.annotation.NonNull;\n \n-import java.util.Collections;\n-import java.util.Set;\n+import static com.pushtorefresh.storio.util.Checks.checkNotNull;\n \n+/**\n+ * Immutable container for result of Delete Operation\n+ * <p>\n+ * Instances of this class are Immutable\n+ */\n public class DeleteResult {\n \n-    private final int numberOfDeletedRows;\n-    private final @NonNull Set<String> affectedTables;\n+    private final int numberOfRowsDeleted;\n \n-    private DeleteResult(int numberOfDeletedRows, @NonNull Set<String> affectedTables) {\n-        this.numberOfDeletedRows = numberOfDeletedRows;\n-        this.affectedTables = Collections.unmodifiableSet(affectedTables);\n+    @NonNull\n+    private final String affectedTable;\n+\n+    private DeleteResult(int numberOfRowsDeleted, @NonNull String affectedTable) {\n+        checkNotNull(affectedTable, \"Please specify affected table\");","path":"storio-sqlitedb/src/main/java/com/pushtorefresh/storio/sqlitedb/operation/delete/DeleteResult.java","position":26,"original_position":26,"commit_id":"62678fa517180773181b5fbb87d47850af141036","original_commit_id":"62678fa517180773181b5fbb87d47850af141036","user":{"login":"artem-zinnatullin","id":967132,"avatar_url":"https://avatars.githubusercontent.com/u/967132?v=3","gravatar_id":"","url":"https://api.github.com/users/artem-zinnatullin","html_url":"https://github.com/artem-zinnatullin","followers_url":"https://api.github.com/users/artem-zinnatullin/followers","following_url":"https://api.github.com/users/artem-zinnatullin/following{/other_user}","gists_url":"https://api.github.com/users/artem-zinnatullin/gists{/gist_id}","starred_url":"https://api.github.com/users/artem-zinnatullin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artem-zinnatullin/subscriptions","organizations_url":"https://api.github.com/users/artem-zinnatullin/orgs","repos_url":"https://api.github.com/users/artem-zinnatullin/repos","events_url":"https://api.github.com/users/artem-zinnatullin/events{/privacy}","received_events_url":"https://api.github.com/users/artem-zinnatullin/received_events","type":"User","site_admin":false},"body":"Annotation does not guarantee anything, unfortunately. I am not happy to use `checkNotNull()` because of little performance downgrade, but I think it's better to fail fast than allowing to use object with corrupted state.","created_at":"2015-04-04T19:10:08Z","updated_at":"2015-04-04T19:10:08Z","html_url":"https://github.com/pushtorefresh/storio/pull/207#discussion_r27771239","pull_request_url":"https://api.github.com/repos/pushtorefresh/storio/pulls/207","_links":{"self":{"href":"https://api.github.com/repos/pushtorefresh/storio/pulls/comments/27771239"},"html":{"href":"https://github.com/pushtorefresh/storio/pull/207#discussion_r27771239"},"pull_request":{"href":"https://api.github.com/repos/pushtorefresh/storio/pulls/207"}}},"pull_request":{"url":"https://api.github.com/repos/pushtorefresh/storio/pulls/207","id":32626931,"html_url":"https://github.com/pushtorefresh/storio/pull/207","diff_url":"https://github.com/pushtorefresh/storio/pull/207.diff","patch_url":"https://github.com/pushtorefresh/storio/pull/207.patch","issue_url":"https://api.github.com/repos/pushtorefresh/storio/issues/207","number":207,"state":"closed","locked":false,"title":"Improve StorIOSQLiteDb Delete Result containers","user":{"login":"artem-zinnatullin","id":967132,"avatar_url":"https://avatars.githubusercontent.com/u/967132?v=3","gravatar_id":"","url":"https://api.github.com/users/artem-zinnatullin","html_url":"https://github.com/artem-zinnatullin","followers_url":"https://api.github.com/users/artem-zinnatullin/followers","following_url":"https://api.github.com/users/artem-zinnatullin/following{/other_user}","gists_url":"https://api.github.com/users/artem-zinnatullin/gists{/gist_id}","starred_url":"https://api.github.com/users/artem-zinnatullin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artem-zinnatullin/subscriptions","organizations_url":"https://api.github.com/users/artem-zinnatullin/orgs","repos_url":"https://api.github.com/users/artem-zinnatullin/repos","events_url":"https://api.github.com/users/artem-zinnatullin/events{/privacy}","received_events_url":"https://api.github.com/users/artem-zinnatullin/received_events","type":"User","site_admin":false},"body":"@nikitin-da PTAL","created_at":"2015-04-04T01:44:04Z","updated_at":"2015-04-04T19:10:08Z","closed_at":"2015-04-04T06:43:21Z","merged_at":"2015-04-04T06:43:21Z","merge_commit_sha":"d740d50bebdbd4af4b2e982afc4637807a6415c2","assignee":{"login":"nikitin-da","id":7294857,"avatar_url":"https://avatars.githubusercontent.com/u/7294857?v=3","gravatar_id":"","url":"https://api.github.com/users/nikitin-da","html_url":"https://github.com/nikitin-da","followers_url":"https://api.github.com/users/nikitin-da/followers","following_url":"https://api.github.com/users/nikitin-da/following{/other_user}","gists_url":"https://api.github.com/users/nikitin-da/gists{/gist_id}","starred_url":"https://api.github.com/users/nikitin-da/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikitin-da/subscriptions","organizations_url":"https://api.github.com/users/nikitin-da/orgs","repos_url":"https://api.github.com/users/nikitin-da/repos","events_url":"https://api.github.com/users/nikitin-da/events{/privacy}","received_events_url":"https://api.github.com/users/nikitin-da/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/pushtorefresh/storio/milestones/6","html_url":"https://github.com/pushtorefresh/storio/milestones/v1.0.0","labels_url":"https://api.github.com/repos/pushtorefresh/storio/milestones/6/labels","id":789775,"number":6,"title":"v1.0.0","description":"","creator":{"login":"artem-zinnatullin","id":967132,"avatar_url":"https://avatars.githubusercontent.com/u/967132?v=3","gravatar_id":"","url":"https://api.github.com/users/artem-zinnatullin","html_url":"https://github.com/artem-zinnatullin","followers_url":"https://api.github.com/users/artem-zinnatullin/followers","following_url":"https://api.github.com/users/artem-zinnatullin/following{/other_user}","gists_url":"https://api.github.com/users/artem-zinnatullin/gists{/gist_id}","starred_url":"https://api.github.com/users/artem-zinnatullin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artem-zinnatullin/subscriptions","organizations_url":"https://api.github.com/users/artem-zinnatullin/orgs","repos_url":"https://api.github.com/users/artem-zinnatullin/repos","events_url":"https://api.github.com/users/artem-zinnatullin/events{/privacy}","received_events_url":"https://api.github.com/users/artem-zinnatullin/received_events","type":"User","site_admin":false},"open_issues":15,"closed_issues":141,"state":"open","created_at":"2014-09-15T11:57:16Z","updated_at":"2015-04-04T14:58:49Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/pushtorefresh/storio/pulls/207/commits","review_comments_url":"https://api.github.com/repos/pushtorefresh/storio/pulls/207/comments","review_comment_url":"https://api.github.com/repos/pushtorefresh/storio/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pushtorefresh/storio/issues/207/comments","statuses_url":"https://api.github.com/repos/pushtorefresh/storio/statuses/62678fa517180773181b5fbb87d47850af141036","head":{"label":"pushtorefresh:storio-sqlitedb-delete-results","ref":"storio-sqlitedb-delete-results","sha":"62678fa517180773181b5fbb87d47850af141036","user":{"login":"pushtorefresh","id":7294803,"avatar_url":"https://avatars.githubusercontent.com/u/7294803?v=3","gravatar_id":"","url":"https://api.github.com/users/pushtorefresh","html_url":"https://github.com/pushtorefresh","followers_url":"https://api.github.com/users/pushtorefresh/followers","following_url":"https://api.github.com/users/pushtorefresh/following{/other_user}","gists_url":"https://api.github.com/users/pushtorefresh/gists{/gist_id}","starred_url":"https://api.github.com/users/pushtorefresh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pushtorefresh/subscriptions","organizations_url":"https://api.github.com/users/pushtorefresh/orgs","repos_url":"https://api.github.com/users/pushtorefresh/repos","events_url":"https://api.github.com/users/pushtorefresh/events{/privacy}","received_events_url":"https://api.github.com/users/pushtorefresh/received_events","type":"Organization","site_admin":false},"repo":{"id":23502577,"name":"storio","full_name":"pushtorefresh/storio","owner":{"login":"pushtorefresh","id":7294803,"avatar_url":"https://avatars.githubusercontent.com/u/7294803?v=3","gravatar_id":"","url":"https://api.github.com/users/pushtorefresh","html_url":"https://github.com/pushtorefresh","followers_url":"https://api.github.com/users/pushtorefresh/followers","following_url":"https://api.github.com/users/pushtorefresh/following{/other_user}","gists_url":"https://api.github.com/users/pushtorefresh/gists{/gist_id}","starred_url":"https://api.github.com/users/pushtorefresh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pushtorefresh/subscriptions","organizations_url":"https://api.github.com/users/pushtorefresh/orgs","repos_url":"https://api.github.com/users/pushtorefresh/repos","events_url":"https://api.github.com/users/pushtorefresh/events{/privacy}","received_events_url":"https://api.github.com/users/pushtorefresh/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pushtorefresh/storio","description":"Modern API for SQLiteDatabase and ContentResolver","fork":false,"url":"https://api.github.com/repos/pushtorefresh/storio","forks_url":"https://api.github.com/repos/pushtorefresh/storio/forks","keys_url":"https://api.github.com/repos/pushtorefresh/storio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pushtorefresh/storio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pushtorefresh/storio/teams","hooks_url":"https://api.github.com/repos/pushtorefresh/storio/hooks","issue_events_url":"https://api.github.com/repos/pushtorefresh/storio/issues/events{/number}","events_url":"https://api.github.com/repos/pushtorefresh/storio/events","assignees_url":"https://api.github.com/repos/pushtorefresh/storio/assignees{/user}","branches_url":"https://api.github.com/repos/pushtorefresh/storio/branches{/branch}","tags_url":"https://api.github.com/repos/pushtorefresh/storio/tags","blobs_url":"https://api.github.com/repos/pushtorefresh/storio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pushtorefresh/storio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pushtorefresh/storio/git/refs{/sha}","trees_url":"https://api.github.com/repos/pushtorefresh/storio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pushtorefresh/storio/statuses/{sha}","languages_url":"https://api.github.com/repos/pushtorefresh/storio/languages","stargazers_url":"https://api.github.com/repos/pushtorefresh/storio/stargazers","contributors_url":"https://api.github.com/repos/pushtorefresh/storio/contributors","subscribers_url":"https://api.github.com/repos/pushtorefresh/storio/subscribers","subscription_url":"https://api.github.com/repos/pushtorefresh/storio/subscription","commits_url":"https://api.github.com/repos/pushtorefresh/storio/commits{/sha}","git_commits_url":"https://api.github.com/repos/pushtorefresh/storio/git/commits{/sha}","comments_url":"https://api.github.com/repos/pushtorefresh/storio/comments{/number}","issue_comment_url":"https://api.github.com/repos/pushtorefresh/storio/issues/comments{/number}","contents_url":"https://api.github.com/repos/pushtorefresh/storio/contents/{+path}","compare_url":"https://api.github.com/repos/pushtorefresh/storio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pushtorefresh/storio/merges","archive_url":"https://api.github.com/repos/pushtorefresh/storio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pushtorefresh/storio/downloads","issues_url":"https://api.github.com/repos/pushtorefresh/storio/issues{/number}","pulls_url":"https://api.github.com/repos/pushtorefresh/storio/pulls{/number}","milestones_url":"https://api.github.com/repos/pushtorefresh/storio/milestones{/number}","notifications_url":"https://api.github.com/repos/pushtorefresh/storio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pushtorefresh/storio/labels{/name}","releases_url":"https://api.github.com/repos/pushtorefresh/storio/releases{/id}","created_at":"2014-08-30T23:23:41Z","updated_at":"2015-04-04T17:42:55Z","pushed_at":"2015-04-04T07:11:32Z","git_url":"git://github.com/pushtorefresh/storio.git","ssh_url":"git@github.com:pushtorefresh/storio.git","clone_url":"https://github.com/pushtorefresh/storio.git","svn_url":"https://github.com/pushtorefresh/storio","homepage":"","size":2567,"stargazers_count":195,"watchers_count":195,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":19,"forks":6,"open_issues":19,"watchers":195,"default_branch":"master"}},"base":{"label":"pushtorefresh:master","ref":"master","sha":"e50d0ab761e203db58151ec514133d1abb67137a","user":{"login":"pushtorefresh","id":7294803,"avatar_url":"https://avatars.githubusercontent.com/u/7294803?v=3","gravatar_id":"","url":"https://api.github.com/users/pushtorefresh","html_url":"https://github.com/pushtorefresh","followers_url":"https://api.github.com/users/pushtorefresh/followers","following_url":"https://api.github.com/users/pushtorefresh/following{/other_user}","gists_url":"https://api.github.com/users/pushtorefresh/gists{/gist_id}","starred_url":"https://api.github.com/users/pushtorefresh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pushtorefresh/subscriptions","organizations_url":"https://api.github.com/users/pushtorefresh/orgs","repos_url":"https://api.github.com/users/pushtorefresh/repos","events_url":"https://api.github.com/users/pushtorefresh/events{/privacy}","received_events_url":"https://api.github.com/users/pushtorefresh/received_events","type":"Organization","site_admin":false},"repo":{"id":23502577,"name":"storio","full_name":"pushtorefresh/storio","owner":{"login":"pushtorefresh","id":7294803,"avatar_url":"https://avatars.githubusercontent.com/u/7294803?v=3","gravatar_id":"","url":"https://api.github.com/users/pushtorefresh","html_url":"https://github.com/pushtorefresh","followers_url":"https://api.github.com/users/pushtorefresh/followers","following_url":"https://api.github.com/users/pushtorefresh/following{/other_user}","gists_url":"https://api.github.com/users/pushtorefresh/gists{/gist_id}","starred_url":"https://api.github.com/users/pushtorefresh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pushtorefresh/subscriptions","organizations_url":"https://api.github.com/users/pushtorefresh/orgs","repos_url":"https://api.github.com/users/pushtorefresh/repos","events_url":"https://api.github.com/users/pushtorefresh/events{/privacy}","received_events_url":"https://api.github.com/users/pushtorefresh/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pushtorefresh/storio","description":"Modern API for SQLiteDatabase and ContentResolver","fork":false,"url":"https://api.github.com/repos/pushtorefresh/storio","forks_url":"https://api.github.com/repos/pushtorefresh/storio/forks","keys_url":"https://api.github.com/repos/pushtorefresh/storio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pushtorefresh/storio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pushtorefresh/storio/teams","hooks_url":"https://api.github.com/repos/pushtorefresh/storio/hooks","issue_events_url":"https://api.github.com/repos/pushtorefresh/storio/issues/events{/number}","events_url":"https://api.github.com/repos/pushtorefresh/storio/events","assignees_url":"https://api.github.com/repos/pushtorefresh/storio/assignees{/user}","branches_url":"https://api.github.com/repos/pushtorefresh/storio/branches{/branch}","tags_url":"https://api.github.com/repos/pushtorefresh/storio/tags","blobs_url":"https://api.github.com/repos/pushtorefresh/storio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pushtorefresh/storio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pushtorefresh/storio/git/refs{/sha}","trees_url":"https://api.github.com/repos/pushtorefresh/storio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pushtorefresh/storio/statuses/{sha}","languages_url":"https://api.github.com/repos/pushtorefresh/storio/languages","stargazers_url":"https://api.github.com/repos/pushtorefresh/storio/stargazers","contributors_url":"https://api.github.com/repos/pushtorefresh/storio/contributors","subscribers_url":"https://api.github.com/repos/pushtorefresh/storio/subscribers","subscription_url":"https://api.github.com/repos/pushtorefresh/storio/subscription","commits_url":"https://api.github.com/repos/pushtorefresh/storio/commits{/sha}","git_commits_url":"https://api.github.com/repos/pushtorefresh/storio/git/commits{/sha}","comments_url":"https://api.github.com/repos/pushtorefresh/storio/comments{/number}","issue_comment_url":"https://api.github.com/repos/pushtorefresh/storio/issues/comments{/number}","contents_url":"https://api.github.com/repos/pushtorefresh/storio/contents/{+path}","compare_url":"https://api.github.com/repos/pushtorefresh/storio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pushtorefresh/storio/merges","archive_url":"https://api.github.com/repos/pushtorefresh/storio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pushtorefresh/storio/downloads","issues_url":"https://api.github.com/repos/pushtorefresh/storio/issues{/number}","pulls_url":"https://api.github.com/repos/pushtorefresh/storio/pulls{/number}","milestones_url":"https://api.github.com/repos/pushtorefresh/storio/milestones{/number}","notifications_url":"https://api.github.com/repos/pushtorefresh/storio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pushtorefresh/storio/labels{/name}","releases_url":"https://api.github.com/repos/pushtorefresh/storio/releases{/id}","created_at":"2014-08-30T23:23:41Z","updated_at":"2015-04-04T17:42:55Z","pushed_at":"2015-04-04T07:11:32Z","git_url":"git://github.com/pushtorefresh/storio.git","ssh_url":"git@github.com:pushtorefresh/storio.git","clone_url":"https://github.com/pushtorefresh/storio.git","svn_url":"https://github.com/pushtorefresh/storio","homepage":"","size":2567,"stargazers_count":195,"watchers_count":195,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":19,"forks":6,"open_issues":19,"watchers":195,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pushtorefresh/storio/pulls/207"},"html":{"href":"https://github.com/pushtorefresh/storio/pull/207"},"issue":{"href":"https://api.github.com/repos/pushtorefresh/storio/issues/207"},"comments":{"href":"https://api.github.com/repos/pushtorefresh/storio/issues/207/comments"},"review_comments":{"href":"https://api.github.com/repos/pushtorefresh/storio/pulls/207/comments"},"review_comment":{"href":"https://api.github.com/repos/pushtorefresh/storio/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pushtorefresh/storio/pulls/207/commits"},"statuses":{"href":"https://api.github.com/repos/pushtorefresh/storio/statuses/62678fa517180773181b5fbb87d47850af141036"}}}}