{"action":"created","comment":{"url":"https://api.github.com/repos/ReactiveX/RxJava/pulls/comments/35793255","id":35793255,"diff_hunk":"@@ -50,6 +53,16 @@\n         PURGE = new AtomicReference<ScheduledExecutorService>();\n         PURGE_FORCE = Boolean.getBoolean(PURGE_FORCE_KEY);\n         PURGE_FREQUENCY = Integer.getInteger(FREQUENCY_KEY, 1000);\n+\n+        // Cached to prevent method call\n+        IS_ANDROID = PlatformDependent.isAndroid();","path":"src/main/java/rx/internal/schedulers/NewThreadWorker.java","position":16,"original_position":16,"commit_id":"4690324bd3034e417cfbcd1cdab878bd073d36a2","original_commit_id":"4690324bd3034e417cfbcd1cdab878bd073d36a2","user":{"login":"JakeWharton","id":66577,"avatar_url":"https://avatars.githubusercontent.com/u/66577?v=3","gravatar_id":"","url":"https://api.github.com/users/JakeWharton","html_url":"https://github.com/JakeWharton","followers_url":"https://api.github.com/users/JakeWharton/followers","following_url":"https://api.github.com/users/JakeWharton/following{/other_user}","gists_url":"https://api.github.com/users/JakeWharton/gists{/gist_id}","starred_url":"https://api.github.com/users/JakeWharton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JakeWharton/subscriptions","organizations_url":"https://api.github.com/users/JakeWharton/orgs","repos_url":"https://api.github.com/users/JakeWharton/repos","events_url":"https://api.github.com/users/JakeWharton/events{/privacy}","received_events_url":"https://api.github.com/users/JakeWharton/received_events","type":"User","site_admin":false},"body":"This is redundant with the other checks","created_at":"2015-07-29T18:18:33Z","updated_at":"2015-07-29T18:18:33Z","html_url":"https://github.com/ReactiveX/RxJava/pull/3121#discussion_r35793255","pull_request_url":"https://api.github.com/repos/ReactiveX/RxJava/pulls/3121","_links":{"self":{"href":"https://api.github.com/repos/ReactiveX/RxJava/pulls/comments/35793255"},"html":{"href":"https://github.com/ReactiveX/RxJava/pull/3121#discussion_r35793255"},"pull_request":{"href":"https://api.github.com/repos/ReactiveX/RxJava/pulls/3121"}}},"pull_request":{"url":"https://api.github.com/repos/ReactiveX/RxJava/pulls/3121","id":41154479,"html_url":"https://github.com/ReactiveX/RxJava/pull/3121","diff_url":"https://github.com/ReactiveX/RxJava/pull/3121.diff","patch_url":"https://github.com/ReactiveX/RxJava/pull/3121.patch","issue_url":"https://api.github.com/repos/ReactiveX/RxJava/issues/3121","number":3121,"state":"open","locked":false,"title":"Disable search for ScheduledExecutorService.setRemoveOnCancelPolicy() on Android API < 21","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":"Resolves #3119.\r\n\r\nThis PR adds methods for detecting Android API Version and disables `NewThreadWorker.tryEnableCancelPolicy()` on Android API < 21 which has significant performance cost on Android.","created_at":"2015-07-29T18:16:10Z","updated_at":"2015-07-29T18:18:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"faa411653bccdd4e74e88a3e1a3d3152f572c054","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ReactiveX/RxJava/pulls/3121/commits","review_comments_url":"https://api.github.com/repos/ReactiveX/RxJava/pulls/3121/comments","review_comment_url":"https://api.github.com/repos/ReactiveX/RxJava/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ReactiveX/RxJava/issues/3121/comments","statuses_url":"https://api.github.com/repos/ReactiveX/RxJava/statuses/4690324bd3034e417cfbcd1cdab878bd073d36a2","head":{"label":"artem-zinnatullin:android-setRemoveOnCancelPolicy","ref":"android-setRemoveOnCancelPolicy","sha":"4690324bd3034e417cfbcd1cdab878bd073d36a2","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},"repo":{"id":31721317,"name":"RxJava","full_name":"artem-zinnatullin/RxJava","owner":{"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},"private":false,"html_url":"https://github.com/artem-zinnatullin/RxJava","description":"RxJava – Reactive Extensions for the JVM – a library for composing asynchronous and event-based programs using observable sequences for the Java VM.","fork":true,"url":"https://api.github.com/repos/artem-zinnatullin/RxJava","forks_url":"https://api.github.com/repos/artem-zinnatullin/RxJava/forks","keys_url":"https://api.github.com/repos/artem-zinnatullin/RxJava/keys{/key_id}","collaborators_url":"https://api.github.com/repos/artem-zinnatullin/RxJava/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/artem-zinnatullin/RxJava/teams","hooks_url":"https://api.github.com/repos/artem-zinnatullin/RxJava/hooks","issue_events_url":"https://api.github.com/repos/artem-zinnatullin/RxJava/issues/events{/number}","events_url":"https://api.github.com/repos/artem-zinnatullin/RxJava/events","assignees_url":"https://api.github.com/repos/artem-zinnatullin/RxJava/assignees{/user}","branches_url":"https://api.github.com/repos/artem-zinnatullin/RxJava/branches{/branch}","tags_url":"https://api.github.com/repos/artem-zinnatullin/RxJava/tags","blobs_url":"https://api.github.com/repos/artem-zinnatullin/RxJava/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/artem-zinnatullin/RxJava/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/artem-zinnatullin/RxJava/git/refs{/sha}","trees_url":"https://api.github.com/repos/artem-zinnatullin/RxJava/git/trees{/sha}","statuses_url":"https://api.github.com/repos/artem-zinnatullin/RxJava/statuses/{sha}","languages_url":"https://api.github.com/repos/artem-zinnatullin/RxJava/languages","stargazers_url":"https://api.github.com/repos/artem-zinnatullin/RxJava/stargazers","contributors_url":"https://api.github.com/repos/artem-zinnatullin/RxJava/contributors","subscribers_url":"https://api.github.com/repos/artem-zinnatullin/RxJava/subscribers","subscription_url":"https://api.github.com/repos/artem-zinnatullin/RxJava/subscription","commits_url":"https://api.github.com/repos/artem-zinnatullin/RxJava/commits{/sha}","git_commits_url":"https://api.github.com/repos/artem-zinnatullin/RxJava/git/commits{/sha}","comments_url":"https://api.github.com/repos/artem-zinnatullin/RxJava/comments{/number}","issue_comment_url":"https://api.github.com/repos/artem-zinnatullin/RxJava/issues/comments{/number}","contents_url":"https://api.github.com/repos/artem-zinnatullin/RxJava/contents/{+path}","compare_url":"https://api.github.com/repos/artem-zinnatullin/RxJava/compare/{base}...{head}","merges_url":"https://api.github.com/repos/artem-zinnatullin/RxJava/merges","archive_url":"https://api.github.com/repos/artem-zinnatullin/RxJava/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/artem-zinnatullin/RxJava/downloads","issues_url":"https://api.github.com/repos/artem-zinnatullin/RxJava/issues{/number}","pulls_url":"https://api.github.com/repos/artem-zinnatullin/RxJava/pulls{/number}","milestones_url":"https://api.github.com/repos/artem-zinnatullin/RxJava/milestones{/number}","notifications_url":"https://api.github.com/repos/artem-zinnatullin/RxJava/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/artem-zinnatullin/RxJava/labels{/name}","releases_url":"https://api.github.com/repos/artem-zinnatullin/RxJava/releases{/id}","created_at":"2015-03-05T15:42:19Z","updated_at":"2015-03-05T15:42:22Z","pushed_at":"2015-07-29T18:13:17Z","git_url":"git://github.com/artem-zinnatullin/RxJava.git","ssh_url":"git@github.com:artem-zinnatullin/RxJava.git","clone_url":"https://github.com/artem-zinnatullin/RxJava.git","svn_url":"https://github.com/artem-zinnatullin/RxJava","homepage":"","size":17459,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"1.x"}},"base":{"label":"ReactiveX:1.x","ref":"1.x","sha":"3494c00d0cf789533c6cb023c3464384dd2f23d7","user":{"login":"ReactiveX","id":6407041,"avatar_url":"https://avatars.githubusercontent.com/u/6407041?v=3","gravatar_id":"","url":"https://api.github.com/users/ReactiveX","html_url":"https://github.com/ReactiveX","followers_url":"https://api.github.com/users/ReactiveX/followers","following_url":"https://api.github.com/users/ReactiveX/following{/other_user}","gists_url":"https://api.github.com/users/ReactiveX/gists{/gist_id}","starred_url":"https://api.github.com/users/ReactiveX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ReactiveX/subscriptions","organizations_url":"https://api.github.com/users/ReactiveX/orgs","repos_url":"https://api.github.com/users/ReactiveX/repos","events_url":"https://api.github.com/users/ReactiveX/events{/privacy}","received_events_url":"https://api.github.com/users/ReactiveX/received_events","type":"Organization","site_admin":false},"repo":{"id":7508411,"name":"RxJava","full_name":"ReactiveX/RxJava","owner":{"login":"ReactiveX","id":6407041,"avatar_url":"https://avatars.githubusercontent.com/u/6407041?v=3","gravatar_id":"","url":"https://api.github.com/users/ReactiveX","html_url":"https://github.com/ReactiveX","followers_url":"https://api.github.com/users/ReactiveX/followers","following_url":"https://api.github.com/users/ReactiveX/following{/other_user}","gists_url":"https://api.github.com/users/ReactiveX/gists{/gist_id}","starred_url":"https://api.github.com/users/ReactiveX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ReactiveX/subscriptions","organizations_url":"https://api.github.com/users/ReactiveX/orgs","repos_url":"https://api.github.com/users/ReactiveX/repos","events_url":"https://api.github.com/users/ReactiveX/events{/privacy}","received_events_url":"https://api.github.com/users/ReactiveX/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ReactiveX/RxJava","description":"RxJava – Reactive Extensions for the JVM – a library for composing asynchronous and event-based programs using observable sequences for the Java VM.","fork":false,"url":"https://api.github.com/repos/ReactiveX/RxJava","forks_url":"https://api.github.com/repos/ReactiveX/RxJava/forks","keys_url":"https://api.github.com/repos/ReactiveX/RxJava/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ReactiveX/RxJava/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ReactiveX/RxJava/teams","hooks_url":"https://api.github.com/repos/ReactiveX/RxJava/hooks","issue_events_url":"https://api.github.com/repos/ReactiveX/RxJava/issues/events{/number}","events_url":"https://api.github.com/repos/ReactiveX/RxJava/events","assignees_url":"https://api.github.com/repos/ReactiveX/RxJava/assignees{/user}","branches_url":"https://api.github.com/repos/ReactiveX/RxJava/branches{/branch}","tags_url":"https://api.github.com/repos/ReactiveX/RxJava/tags","blobs_url":"https://api.github.com/repos/ReactiveX/RxJava/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ReactiveX/RxJava/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ReactiveX/RxJava/git/refs{/sha}","trees_url":"https://api.github.com/repos/ReactiveX/RxJava/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ReactiveX/RxJava/statuses/{sha}","languages_url":"https://api.github.com/repos/ReactiveX/RxJava/languages","stargazers_url":"https://api.github.com/repos/ReactiveX/RxJava/stargazers","contributors_url":"https://api.github.com/repos/ReactiveX/RxJava/contributors","subscribers_url":"https://api.github.com/repos/ReactiveX/RxJava/subscribers","subscription_url":"https://api.github.com/repos/ReactiveX/RxJava/subscription","commits_url":"https://api.github.com/repos/ReactiveX/RxJava/commits{/sha}","git_commits_url":"https://api.github.com/repos/ReactiveX/RxJava/git/commits{/sha}","comments_url":"https://api.github.com/repos/ReactiveX/RxJava/comments{/number}","issue_comment_url":"https://api.github.com/repos/ReactiveX/RxJava/issues/comments{/number}","contents_url":"https://api.github.com/repos/ReactiveX/RxJava/contents/{+path}","compare_url":"https://api.github.com/repos/ReactiveX/RxJava/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ReactiveX/RxJava/merges","archive_url":"https://api.github.com/repos/ReactiveX/RxJava/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ReactiveX/RxJava/downloads","issues_url":"https://api.github.com/repos/ReactiveX/RxJava/issues{/number}","pulls_url":"https://api.github.com/repos/ReactiveX/RxJava/pulls{/number}","milestones_url":"https://api.github.com/repos/ReactiveX/RxJava/milestones{/number}","notifications_url":"https://api.github.com/repos/ReactiveX/RxJava/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ReactiveX/RxJava/labels{/name}","releases_url":"https://api.github.com/repos/ReactiveX/RxJava/releases{/id}","created_at":"2013-01-08T20:11:48Z","updated_at":"2015-07-29T15:38:39Z","pushed_at":"2015-07-29T18:16:11Z","git_url":"git://github.com/ReactiveX/RxJava.git","ssh_url":"git@github.com:ReactiveX/RxJava.git","clone_url":"https://github.com/ReactiveX/RxJava.git","svn_url":"https://github.com/ReactiveX/RxJava","homepage":"","size":547845,"stargazers_count":6656,"watchers_count":6656,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":920,"mirror_url":null,"open_issues_count":172,"forks":920,"open_issues":172,"watchers":6656,"default_branch":"1.x"}},"_links":{"self":{"href":"https://api.github.com/repos/ReactiveX/RxJava/pulls/3121"},"html":{"href":"https://github.com/ReactiveX/RxJava/pull/3121"},"issue":{"href":"https://api.github.com/repos/ReactiveX/RxJava/issues/3121"},"comments":{"href":"https://api.github.com/repos/ReactiveX/RxJava/issues/3121/comments"},"review_comments":{"href":"https://api.github.com/repos/ReactiveX/RxJava/pulls/3121/comments"},"review_comment":{"href":"https://api.github.com/repos/ReactiveX/RxJava/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ReactiveX/RxJava/pulls/3121/commits"},"statuses":{"href":"https://api.github.com/repos/ReactiveX/RxJava/statuses/4690324bd3034e417cfbcd1cdab878bd073d36a2"}}}}