{"action":"created","comment":{"url":"https://api.github.com/repos/WhisperSystems/TextSecure/pulls/comments/31193917","id":31193917,"diff_hunk":"@@ -28,13 +27,14 @@\n import org.thoughtcrime.securesms.util.GroupUtil;\n import org.thoughtcrime.securesms.util.ListenableFutureTask;\n \n-import java.util.HashSet;\n+import java.util.Iterator;\n+import java.util.WeakHashMap;\n \n public class Recipient {\n \n   private final static String TAG = Recipient.class.getSimpleName();\n \n-  private final HashSet<RecipientModifiedListener> listeners = new HashSet<>();\n+  private final WeakHashMap<RecipientModifiedListener, Object> listeners = new WeakHashMap<>();","path":"src/org/thoughtcrime/securesms/recipients/Recipient.java","position":21,"original_position":21,"commit_id":"295fca86683f47a1f6144a0c7e4a8eef0f4c704e","original_commit_id":"295fca86683f47a1f6144a0c7e4a8eef0f4c704e","user":{"login":"moxie0","id":512439,"avatar_url":"https://avatars.githubusercontent.com/u/512439?v=3","gravatar_id":"","url":"https://api.github.com/users/moxie0","html_url":"https://github.com/moxie0","followers_url":"https://api.github.com/users/moxie0/followers","following_url":"https://api.github.com/users/moxie0/following{/other_user}","gists_url":"https://api.github.com/users/moxie0/gists{/gist_id}","starred_url":"https://api.github.com/users/moxie0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moxie0/subscriptions","organizations_url":"https://api.github.com/users/moxie0/orgs","repos_url":"https://api.github.com/users/moxie0/repos","events_url":"https://api.github.com/users/moxie0/events{/privacy}","received_events_url":"https://api.github.com/users/moxie0/received_events","type":"User","site_admin":false},"body":"Collections.newSetFromMap(new WeakHashMap<RecipientModifiedListener, Object>());","created_at":"2015-05-28T00:20:47Z","updated_at":"2015-05-28T00:20:47Z","html_url":"https://github.com/WhisperSystems/TextSecure/pull/3228#discussion_r31193917","pull_request_url":"https://api.github.com/repos/WhisperSystems/TextSecure/pulls/3228","_links":{"self":{"href":"https://api.github.com/repos/WhisperSystems/TextSecure/pulls/comments/31193917"},"html":{"href":"https://github.com/WhisperSystems/TextSecure/pull/3228#discussion_r31193917"},"pull_request":{"href":"https://api.github.com/repos/WhisperSystems/TextSecure/pulls/3228"}}},"pull_request":{"url":"https://api.github.com/repos/WhisperSystems/TextSecure/pulls/3228","id":35969882,"html_url":"https://github.com/WhisperSystems/TextSecure/pull/3228","diff_url":"https://github.com/WhisperSystems/TextSecure/pull/3228.diff","patch_url":"https://github.com/WhisperSystems/TextSecure/pull/3228.patch","issue_url":"https://api.github.com/repos/WhisperSystems/TextSecure/issues/3228","number":3228,"state":"open","locked":false,"title":"Memory leak fixes","user":{"login":"herbig","id":384559,"avatar_url":"https://avatars.githubusercontent.com/u/384559?v=3","gravatar_id":"","url":"https://api.github.com/users/herbig","html_url":"https://github.com/herbig","followers_url":"https://api.github.com/users/herbig/followers","following_url":"https://api.github.com/users/herbig/following{/other_user}","gists_url":"https://api.github.com/users/herbig/gists{/gist_id}","starred_url":"https://api.github.com/users/herbig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/herbig/subscriptions","organizations_url":"https://api.github.com/users/herbig/orgs","repos_url":"https://api.github.com/users/herbig/repos","events_url":"https://api.github.com/users/herbig/events{/privacy}","received_events_url":"https://api.github.com/users/herbig/received_events","type":"User","site_admin":false},"body":"FREEBIE Activity related memory leak fixes.","created_at":"2015-05-21T19:43:08Z","updated_at":"2015-05-28T00:20:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fd301ed29dd2468483ca5cc236e58b7a5f789ec7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/WhisperSystems/TextSecure/pulls/3228/commits","review_comments_url":"https://api.github.com/repos/WhisperSystems/TextSecure/pulls/3228/comments","review_comment_url":"https://api.github.com/repos/WhisperSystems/TextSecure/pulls/comments{/number}","comments_url":"https://api.github.com/repos/WhisperSystems/TextSecure/issues/3228/comments","statuses_url":"https://api.github.com/repos/WhisperSystems/TextSecure/statuses/295fca86683f47a1f6144a0c7e4a8eef0f4c704e","head":{"label":"herbig:master","ref":"master","sha":"295fca86683f47a1f6144a0c7e4a8eef0f4c704e","user":{"login":"herbig","id":384559,"avatar_url":"https://avatars.githubusercontent.com/u/384559?v=3","gravatar_id":"","url":"https://api.github.com/users/herbig","html_url":"https://github.com/herbig","followers_url":"https://api.github.com/users/herbig/followers","following_url":"https://api.github.com/users/herbig/following{/other_user}","gists_url":"https://api.github.com/users/herbig/gists{/gist_id}","starred_url":"https://api.github.com/users/herbig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/herbig/subscriptions","organizations_url":"https://api.github.com/users/herbig/orgs","repos_url":"https://api.github.com/users/herbig/repos","events_url":"https://api.github.com/users/herbig/events{/privacy}","received_events_url":"https://api.github.com/users/herbig/received_events","type":"User","site_admin":false},"repo":{"id":36032812,"name":"TextSecure","full_name":"herbig/TextSecure","owner":{"login":"herbig","id":384559,"avatar_url":"https://avatars.githubusercontent.com/u/384559?v=3","gravatar_id":"","url":"https://api.github.com/users/herbig","html_url":"https://github.com/herbig","followers_url":"https://api.github.com/users/herbig/followers","following_url":"https://api.github.com/users/herbig/following{/other_user}","gists_url":"https://api.github.com/users/herbig/gists{/gist_id}","starred_url":"https://api.github.com/users/herbig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/herbig/subscriptions","organizations_url":"https://api.github.com/users/herbig/orgs","repos_url":"https://api.github.com/users/herbig/repos","events_url":"https://api.github.com/users/herbig/events{/privacy}","received_events_url":"https://api.github.com/users/herbig/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/herbig/TextSecure","description":"A private messenger for Android.","fork":true,"url":"https://api.github.com/repos/herbig/TextSecure","forks_url":"https://api.github.com/repos/herbig/TextSecure/forks","keys_url":"https://api.github.com/repos/herbig/TextSecure/keys{/key_id}","collaborators_url":"https://api.github.com/repos/herbig/TextSecure/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/herbig/TextSecure/teams","hooks_url":"https://api.github.com/repos/herbig/TextSecure/hooks","issue_events_url":"https://api.github.com/repos/herbig/TextSecure/issues/events{/number}","events_url":"https://api.github.com/repos/herbig/TextSecure/events","assignees_url":"https://api.github.com/repos/herbig/TextSecure/assignees{/user}","branches_url":"https://api.github.com/repos/herbig/TextSecure/branches{/branch}","tags_url":"https://api.github.com/repos/herbig/TextSecure/tags","blobs_url":"https://api.github.com/repos/herbig/TextSecure/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/herbig/TextSecure/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/herbig/TextSecure/git/refs{/sha}","trees_url":"https://api.github.com/repos/herbig/TextSecure/git/trees{/sha}","statuses_url":"https://api.github.com/repos/herbig/TextSecure/statuses/{sha}","languages_url":"https://api.github.com/repos/herbig/TextSecure/languages","stargazers_url":"https://api.github.com/repos/herbig/TextSecure/stargazers","contributors_url":"https://api.github.com/repos/herbig/TextSecure/contributors","subscribers_url":"https://api.github.com/repos/herbig/TextSecure/subscribers","subscription_url":"https://api.github.com/repos/herbig/TextSecure/subscription","commits_url":"https://api.github.com/repos/herbig/TextSecure/commits{/sha}","git_commits_url":"https://api.github.com/repos/herbig/TextSecure/git/commits{/sha}","comments_url":"https://api.github.com/repos/herbig/TextSecure/comments{/number}","issue_comment_url":"https://api.github.com/repos/herbig/TextSecure/issues/comments{/number}","contents_url":"https://api.github.com/repos/herbig/TextSecure/contents/{+path}","compare_url":"https://api.github.com/repos/herbig/TextSecure/compare/{base}...{head}","merges_url":"https://api.github.com/repos/herbig/TextSecure/merges","archive_url":"https://api.github.com/repos/herbig/TextSecure/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/herbig/TextSecure/downloads","issues_url":"https://api.github.com/repos/herbig/TextSecure/issues{/number}","pulls_url":"https://api.github.com/repos/herbig/TextSecure/pulls{/number}","milestones_url":"https://api.github.com/repos/herbig/TextSecure/milestones{/number}","notifications_url":"https://api.github.com/repos/herbig/TextSecure/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/herbig/TextSecure/labels{/name}","releases_url":"https://api.github.com/repos/herbig/TextSecure/releases{/id}","created_at":"2015-05-21T19:21:59Z","updated_at":"2015-05-21T19:22:02Z","pushed_at":"2015-05-22T20:56:37Z","git_url":"git://github.com/herbig/TextSecure.git","ssh_url":"git@github.com:herbig/TextSecure.git","clone_url":"https://github.com/herbig/TextSecure.git","svn_url":"https://github.com/herbig/TextSecure","homepage":"https://whispersystems.org","size":47152,"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":"WhisperSystems:master","ref":"master","sha":"9c2f14dade14349b31d9c266dc2bba2b574da9b6","user":{"login":"WhisperSystems","id":702459,"avatar_url":"https://avatars.githubusercontent.com/u/702459?v=3","gravatar_id":"","url":"https://api.github.com/users/WhisperSystems","html_url":"https://github.com/WhisperSystems","followers_url":"https://api.github.com/users/WhisperSystems/followers","following_url":"https://api.github.com/users/WhisperSystems/following{/other_user}","gists_url":"https://api.github.com/users/WhisperSystems/gists{/gist_id}","starred_url":"https://api.github.com/users/WhisperSystems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WhisperSystems/subscriptions","organizations_url":"https://api.github.com/users/WhisperSystems/orgs","repos_url":"https://api.github.com/users/WhisperSystems/repos","events_url":"https://api.github.com/users/WhisperSystems/events{/privacy}","received_events_url":"https://api.github.com/users/WhisperSystems/received_events","type":"Organization","site_admin":false},"repo":{"id":2990192,"name":"TextSecure","full_name":"WhisperSystems/TextSecure","owner":{"login":"WhisperSystems","id":702459,"avatar_url":"https://avatars.githubusercontent.com/u/702459?v=3","gravatar_id":"","url":"https://api.github.com/users/WhisperSystems","html_url":"https://github.com/WhisperSystems","followers_url":"https://api.github.com/users/WhisperSystems/followers","following_url":"https://api.github.com/users/WhisperSystems/following{/other_user}","gists_url":"https://api.github.com/users/WhisperSystems/gists{/gist_id}","starred_url":"https://api.github.com/users/WhisperSystems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WhisperSystems/subscriptions","organizations_url":"https://api.github.com/users/WhisperSystems/orgs","repos_url":"https://api.github.com/users/WhisperSystems/repos","events_url":"https://api.github.com/users/WhisperSystems/events{/privacy}","received_events_url":"https://api.github.com/users/WhisperSystems/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/WhisperSystems/TextSecure","description":"A private messenger for Android.","fork":false,"url":"https://api.github.com/repos/WhisperSystems/TextSecure","forks_url":"https://api.github.com/repos/WhisperSystems/TextSecure/forks","keys_url":"https://api.github.com/repos/WhisperSystems/TextSecure/keys{/key_id}","collaborators_url":"https://api.github.com/repos/WhisperSystems/TextSecure/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/WhisperSystems/TextSecure/teams","hooks_url":"https://api.github.com/repos/WhisperSystems/TextSecure/hooks","issue_events_url":"https://api.github.com/repos/WhisperSystems/TextSecure/issues/events{/number}","events_url":"https://api.github.com/repos/WhisperSystems/TextSecure/events","assignees_url":"https://api.github.com/repos/WhisperSystems/TextSecure/assignees{/user}","branches_url":"https://api.github.com/repos/WhisperSystems/TextSecure/branches{/branch}","tags_url":"https://api.github.com/repos/WhisperSystems/TextSecure/tags","blobs_url":"https://api.github.com/repos/WhisperSystems/TextSecure/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/WhisperSystems/TextSecure/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/WhisperSystems/TextSecure/git/refs{/sha}","trees_url":"https://api.github.com/repos/WhisperSystems/TextSecure/git/trees{/sha}","statuses_url":"https://api.github.com/repos/WhisperSystems/TextSecure/statuses/{sha}","languages_url":"https://api.github.com/repos/WhisperSystems/TextSecure/languages","stargazers_url":"https://api.github.com/repos/WhisperSystems/TextSecure/stargazers","contributors_url":"https://api.github.com/repos/WhisperSystems/TextSecure/contributors","subscribers_url":"https://api.github.com/repos/WhisperSystems/TextSecure/subscribers","subscription_url":"https://api.github.com/repos/WhisperSystems/TextSecure/subscription","commits_url":"https://api.github.com/repos/WhisperSystems/TextSecure/commits{/sha}","git_commits_url":"https://api.github.com/repos/WhisperSystems/TextSecure/git/commits{/sha}","comments_url":"https://api.github.com/repos/WhisperSystems/TextSecure/comments{/number}","issue_comment_url":"https://api.github.com/repos/WhisperSystems/TextSecure/issues/comments{/number}","contents_url":"https://api.github.com/repos/WhisperSystems/TextSecure/contents/{+path}","compare_url":"https://api.github.com/repos/WhisperSystems/TextSecure/compare/{base}...{head}","merges_url":"https://api.github.com/repos/WhisperSystems/TextSecure/merges","archive_url":"https://api.github.com/repos/WhisperSystems/TextSecure/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/WhisperSystems/TextSecure/downloads","issues_url":"https://api.github.com/repos/WhisperSystems/TextSecure/issues{/number}","pulls_url":"https://api.github.com/repos/WhisperSystems/TextSecure/pulls{/number}","milestones_url":"https://api.github.com/repos/WhisperSystems/TextSecure/milestones{/number}","notifications_url":"https://api.github.com/repos/WhisperSystems/TextSecure/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/WhisperSystems/TextSecure/labels{/name}","releases_url":"https://api.github.com/repos/WhisperSystems/TextSecure/releases{/id}","created_at":"2011-12-15T20:01:12Z","updated_at":"2015-05-28T00:06:26Z","pushed_at":"2015-05-27T23:50:14Z","git_url":"git://github.com/WhisperSystems/TextSecure.git","ssh_url":"git@github.com:WhisperSystems/TextSecure.git","clone_url":"https://github.com/WhisperSystems/TextSecure.git","svn_url":"https://github.com/WhisperSystems/TextSecure","homepage":"https://whispersystems.org","size":85531,"stargazers_count":3946,"watchers_count":3946,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1146,"mirror_url":null,"open_issues_count":421,"forks":1146,"open_issues":421,"watchers":3946,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/WhisperSystems/TextSecure/pulls/3228"},"html":{"href":"https://github.com/WhisperSystems/TextSecure/pull/3228"},"issue":{"href":"https://api.github.com/repos/WhisperSystems/TextSecure/issues/3228"},"comments":{"href":"https://api.github.com/repos/WhisperSystems/TextSecure/issues/3228/comments"},"review_comments":{"href":"https://api.github.com/repos/WhisperSystems/TextSecure/pulls/3228/comments"},"review_comment":{"href":"https://api.github.com/repos/WhisperSystems/TextSecure/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/WhisperSystems/TextSecure/pulls/3228/commits"},"statuses":{"href":"https://api.github.com/repos/WhisperSystems/TextSecure/statuses/295fca86683f47a1f6144a0c7e4a8eef0f4c704e"}}}}