{"action":"opened","number":42,"pull_request":{"url":"https://api.github.com/repos/moduth/blockcanary/pulls/42","id":63043909,"html_url":"https://github.com/moduth/blockcanary/pull/42","diff_url":"https://github.com/moduth/blockcanary/pull/42.diff","patch_url":"https://github.com/moduth/blockcanary/pull/42.patch","issue_url":"https://api.github.com/repos/moduth/blockcanary/issues/42","number":42,"state":"open","locked":false,"title":"General Code Improvement 5","user":{"login":"zeeshanasghar","id":16441340,"avatar_url":"https://avatars.githubusercontent.com/u/16441340?v=3","gravatar_id":"","url":"https://api.github.com/users/zeeshanasghar","html_url":"https://github.com/zeeshanasghar","followers_url":"https://api.github.com/users/zeeshanasghar/followers","following_url":"https://api.github.com/users/zeeshanasghar/following{/other_user}","gists_url":"https://api.github.com/users/zeeshanasghar/gists{/gist_id}","starred_url":"https://api.github.com/users/zeeshanasghar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zeeshanasghar/subscriptions","organizations_url":"https://api.github.com/users/zeeshanasghar/orgs","repos_url":"https://api.github.com/users/zeeshanasghar/repos","events_url":"https://api.github.com/users/zeeshanasghar/events{/privacy}","received_events_url":"https://api.github.com/users/zeeshanasghar/received_events","type":"User","site_admin":false},"body":"This pull request is focused on resolving occurrences of Sonar rule \r\n\r\nsquid:S2184 Math operands should be cast before assignment\r\nsquid:AssignmentInSubExpressionCheck Assignments should not be made from within sub-expressions\r\nsquid:SwitchLastCaseIsDefaultCheck 'switch' statements should end with a 'default' clause\r\nsquid:S2325 'private' methods that don't access instance data should be 'static'\r\n\r\nYou can find more information about the issue here: \r\nhttps://dev.eclipse.org/sonar/rules/show/squid:S2184 \r\nhttps://dev.eclipse.org/sonar/rules/show/squid:AssignmentInSubExpressionCheck \r\nhttps://dev.eclipse.org/sonar/rules/show/squid:SwitchLastCaseIsDefaultCheck \r\nhttps://dev.eclipse.org/sonar/rules/show/squid:S2325 \r\n\r\nPlease let me know if you have any questions.\r\n\r\nZeeshan Asghar","created_at":"2016-03-16T10:40:54Z","updated_at":"2016-03-16T10:40:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/moduth/blockcanary/pulls/42/commits","review_comments_url":"https://api.github.com/repos/moduth/blockcanary/pulls/42/comments","review_comment_url":"https://api.github.com/repos/moduth/blockcanary/pulls/comments{/number}","comments_url":"https://api.github.com/repos/moduth/blockcanary/issues/42/comments","statuses_url":"https://api.github.com/repos/moduth/blockcanary/statuses/83ca19cdc7da580cdb79d78b26f9093b46bd7f3b","head":{"label":"DevFactory:release/general-code-improvements-fix-5","ref":"release/general-code-improvements-fix-5","sha":"83ca19cdc7da580cdb79d78b26f9093b46bd7f3b","user":{"login":"DevFactory","id":1516696,"avatar_url":"https://avatars.githubusercontent.com/u/1516696?v=3","gravatar_id":"","url":"https://api.github.com/users/DevFactory","html_url":"https://github.com/DevFactory","followers_url":"https://api.github.com/users/DevFactory/followers","following_url":"https://api.github.com/users/DevFactory/following{/other_user}","gists_url":"https://api.github.com/users/DevFactory/gists{/gist_id}","starred_url":"https://api.github.com/users/DevFactory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DevFactory/subscriptions","organizations_url":"https://api.github.com/users/DevFactory/orgs","repos_url":"https://api.github.com/users/DevFactory/repos","events_url":"https://api.github.com/users/DevFactory/events{/privacy}","received_events_url":"https://api.github.com/users/DevFactory/received_events","type":"Organization","site_admin":false},"repo":{"id":54022827,"name":"blockcanary","full_name":"DevFactory/blockcanary","owner":{"login":"DevFactory","id":1516696,"avatar_url":"https://avatars.githubusercontent.com/u/1516696?v=3","gravatar_id":"","url":"https://api.github.com/users/DevFactory","html_url":"https://github.com/DevFactory","followers_url":"https://api.github.com/users/DevFactory/followers","following_url":"https://api.github.com/users/DevFactory/following{/other_user}","gists_url":"https://api.github.com/users/DevFactory/gists{/gist_id}","starred_url":"https://api.github.com/users/DevFactory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DevFactory/subscriptions","organizations_url":"https://api.github.com/users/DevFactory/orgs","repos_url":"https://api.github.com/users/DevFactory/repos","events_url":"https://api.github.com/users/DevFactory/events{/privacy}","received_events_url":"https://api.github.com/users/DevFactory/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DevFactory/blockcanary","description":"A transparent ui-block detection library for Android.","fork":true,"url":"https://api.github.com/repos/DevFactory/blockcanary","forks_url":"https://api.github.com/repos/DevFactory/blockcanary/forks","keys_url":"https://api.github.com/repos/DevFactory/blockcanary/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DevFactory/blockcanary/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DevFactory/blockcanary/teams","hooks_url":"https://api.github.com/repos/DevFactory/blockcanary/hooks","issue_events_url":"https://api.github.com/repos/DevFactory/blockcanary/issues/events{/number}","events_url":"https://api.github.com/repos/DevFactory/blockcanary/events","assignees_url":"https://api.github.com/repos/DevFactory/blockcanary/assignees{/user}","branches_url":"https://api.github.com/repos/DevFactory/blockcanary/branches{/branch}","tags_url":"https://api.github.com/repos/DevFactory/blockcanary/tags","blobs_url":"https://api.github.com/repos/DevFactory/blockcanary/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DevFactory/blockcanary/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DevFactory/blockcanary/git/refs{/sha}","trees_url":"https://api.github.com/repos/DevFactory/blockcanary/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DevFactory/blockcanary/statuses/{sha}","languages_url":"https://api.github.com/repos/DevFactory/blockcanary/languages","stargazers_url":"https://api.github.com/repos/DevFactory/blockcanary/stargazers","contributors_url":"https://api.github.com/repos/DevFactory/blockcanary/contributors","subscribers_url":"https://api.github.com/repos/DevFactory/blockcanary/subscribers","subscription_url":"https://api.github.com/repos/DevFactory/blockcanary/subscription","commits_url":"https://api.github.com/repos/DevFactory/blockcanary/commits{/sha}","git_commits_url":"https://api.github.com/repos/DevFactory/blockcanary/git/commits{/sha}","comments_url":"https://api.github.com/repos/DevFactory/blockcanary/comments{/number}","issue_comment_url":"https://api.github.com/repos/DevFactory/blockcanary/issues/comments{/number}","contents_url":"https://api.github.com/repos/DevFactory/blockcanary/contents/{+path}","compare_url":"https://api.github.com/repos/DevFactory/blockcanary/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DevFactory/blockcanary/merges","archive_url":"https://api.github.com/repos/DevFactory/blockcanary/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DevFactory/blockcanary/downloads","issues_url":"https://api.github.com/repos/DevFactory/blockcanary/issues{/number}","pulls_url":"https://api.github.com/repos/DevFactory/blockcanary/pulls{/number}","milestones_url":"https://api.github.com/repos/DevFactory/blockcanary/milestones{/number}","notifications_url":"https://api.github.com/repos/DevFactory/blockcanary/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DevFactory/blockcanary/labels{/name}","releases_url":"https://api.github.com/repos/DevFactory/blockcanary/releases{/id}","deployments_url":"https://api.github.com/repos/DevFactory/blockcanary/deployments","created_at":"2016-03-16T10:32:53Z","updated_at":"2016-03-16T10:32:54Z","pushed_at":"2016-03-16T10:34:29Z","git_url":"git://github.com/DevFactory/blockcanary.git","ssh_url":"git@github.com:DevFactory/blockcanary.git","clone_url":"https://github.com/DevFactory/blockcanary.git","svn_url":"https://github.com/DevFactory/blockcanary","homepage":"http://blog.zhaiyifan.cn/2016/01/16/BlockCanaryTransparentPerformanceMonitor/","size":612,"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":"moduth:master","ref":"master","sha":"72d37086593146a55fc4f21ed1ace3c0022d459d","user":{"login":"moduth","id":16304115,"avatar_url":"https://avatars.githubusercontent.com/u/16304115?v=3","gravatar_id":"","url":"https://api.github.com/users/moduth","html_url":"https://github.com/moduth","followers_url":"https://api.github.com/users/moduth/followers","following_url":"https://api.github.com/users/moduth/following{/other_user}","gists_url":"https://api.github.com/users/moduth/gists{/gist_id}","starred_url":"https://api.github.com/users/moduth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moduth/subscriptions","organizations_url":"https://api.github.com/users/moduth/orgs","repos_url":"https://api.github.com/users/moduth/repos","events_url":"https://api.github.com/users/moduth/events{/privacy}","received_events_url":"https://api.github.com/users/moduth/received_events","type":"Organization","site_admin":false},"repo":{"id":49804293,"name":"blockcanary","full_name":"moduth/blockcanary","owner":{"login":"moduth","id":16304115,"avatar_url":"https://avatars.githubusercontent.com/u/16304115?v=3","gravatar_id":"","url":"https://api.github.com/users/moduth","html_url":"https://github.com/moduth","followers_url":"https://api.github.com/users/moduth/followers","following_url":"https://api.github.com/users/moduth/following{/other_user}","gists_url":"https://api.github.com/users/moduth/gists{/gist_id}","starred_url":"https://api.github.com/users/moduth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moduth/subscriptions","organizations_url":"https://api.github.com/users/moduth/orgs","repos_url":"https://api.github.com/users/moduth/repos","events_url":"https://api.github.com/users/moduth/events{/privacy}","received_events_url":"https://api.github.com/users/moduth/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/moduth/blockcanary","description":"A transparent ui-block detection library for Android.","fork":false,"url":"https://api.github.com/repos/moduth/blockcanary","forks_url":"https://api.github.com/repos/moduth/blockcanary/forks","keys_url":"https://api.github.com/repos/moduth/blockcanary/keys{/key_id}","collaborators_url":"https://api.github.com/repos/moduth/blockcanary/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/moduth/blockcanary/teams","hooks_url":"https://api.github.com/repos/moduth/blockcanary/hooks","issue_events_url":"https://api.github.com/repos/moduth/blockcanary/issues/events{/number}","events_url":"https://api.github.com/repos/moduth/blockcanary/events","assignees_url":"https://api.github.com/repos/moduth/blockcanary/assignees{/user}","branches_url":"https://api.github.com/repos/moduth/blockcanary/branches{/branch}","tags_url":"https://api.github.com/repos/moduth/blockcanary/tags","blobs_url":"https://api.github.com/repos/moduth/blockcanary/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/moduth/blockcanary/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/moduth/blockcanary/git/refs{/sha}","trees_url":"https://api.github.com/repos/moduth/blockcanary/git/trees{/sha}","statuses_url":"https://api.github.com/repos/moduth/blockcanary/statuses/{sha}","languages_url":"https://api.github.com/repos/moduth/blockcanary/languages","stargazers_url":"https://api.github.com/repos/moduth/blockcanary/stargazers","contributors_url":"https://api.github.com/repos/moduth/blockcanary/contributors","subscribers_url":"https://api.github.com/repos/moduth/blockcanary/subscribers","subscription_url":"https://api.github.com/repos/moduth/blockcanary/subscription","commits_url":"https://api.github.com/repos/moduth/blockcanary/commits{/sha}","git_commits_url":"https://api.github.com/repos/moduth/blockcanary/git/commits{/sha}","comments_url":"https://api.github.com/repos/moduth/blockcanary/comments{/number}","issue_comment_url":"https://api.github.com/repos/moduth/blockcanary/issues/comments{/number}","contents_url":"https://api.github.com/repos/moduth/blockcanary/contents/{+path}","compare_url":"https://api.github.com/repos/moduth/blockcanary/compare/{base}...{head}","merges_url":"https://api.github.com/repos/moduth/blockcanary/merges","archive_url":"https://api.github.com/repos/moduth/blockcanary/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/moduth/blockcanary/downloads","issues_url":"https://api.github.com/repos/moduth/blockcanary/issues{/number}","pulls_url":"https://api.github.com/repos/moduth/blockcanary/pulls{/number}","milestones_url":"https://api.github.com/repos/moduth/blockcanary/milestones{/number}","notifications_url":"https://api.github.com/repos/moduth/blockcanary/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/moduth/blockcanary/labels{/name}","releases_url":"https://api.github.com/repos/moduth/blockcanary/releases{/id}","deployments_url":"https://api.github.com/repos/moduth/blockcanary/deployments","created_at":"2016-01-17T05:23:22Z","updated_at":"2016-03-16T06:48:25Z","pushed_at":"2016-03-16T10:39:50Z","git_url":"git://github.com/moduth/blockcanary.git","ssh_url":"git@github.com:moduth/blockcanary.git","clone_url":"https://github.com/moduth/blockcanary.git","svn_url":"https://github.com/moduth/blockcanary","homepage":"http://blog.zhaiyifan.cn/2016/01/16/BlockCanaryTransparentPerformanceMonitor/","size":603,"stargazers_count":1171,"watchers_count":1171,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":181,"mirror_url":null,"open_issues_count":14,"forks":181,"open_issues":14,"watchers":1171,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/moduth/blockcanary/pulls/42"},"html":{"href":"https://github.com/moduth/blockcanary/pull/42"},"issue":{"href":"https://api.github.com/repos/moduth/blockcanary/issues/42"},"comments":{"href":"https://api.github.com/repos/moduth/blockcanary/issues/42/comments"},"review_comments":{"href":"https://api.github.com/repos/moduth/blockcanary/pulls/42/comments"},"review_comment":{"href":"https://api.github.com/repos/moduth/blockcanary/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/moduth/blockcanary/pulls/42/commits"},"statuses":{"href":"https://api.github.com/repos/moduth/blockcanary/statuses/83ca19cdc7da580cdb79d78b26f9093b46bd7f3b"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":7,"deletions":4,"changed_files":3}}