{"action":"created","comment":{"url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/pulls/comments/234119276","pull_request_review_id":175692833,"id":234119276,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNDExOTI3Ng==","diff_hunk":"@@ -61,16 +61,14 @@ public type SimpleQueueReceiver object {\n     #\n     # + serviceType - type descriptor of the service to bind to\n     public function register(typedesc serviceType) {\n-        match (self.queueReceiver) {\n-            QueueReceiver c => {\n-                c.register(serviceType);\n-            }\n-            () => {\n-                string errorMessage = \"Queue receiver cannot be nil\";\n-                map errorDetail = { message: errorMessage };\n-                error e = error(JMS_ERROR_CODE, errorDetail);\n-                panic e;\n-            }\n+        var queueReceiver = self.queueReceiver;\n+        if (queueReceiver is  QueueReceiver) {","path":"stdlib/jms/src/main/ballerina/jms/simple_queue_receiver.bal","position":15,"original_position":15,"commit_id":"cde2080c852f9386d3573f01373e00d5b9f3f4a2","original_commit_id":"cde2080c852f9386d3573f01373e00d5b9f3f4a2","user":{"login":"aashikam","id":39673615,"node_id":"MDQ6VXNlcjM5NjczNjE1","avatar_url":"https://avatars3.githubusercontent.com/u/39673615?v=4","gravatar_id":"","url":"https://api.github.com/users/aashikam","html_url":"https://github.com/aashikam","followers_url":"https://api.github.com/users/aashikam/followers","following_url":"https://api.github.com/users/aashikam/following{/other_user}","gists_url":"https://api.github.com/users/aashikam/gists{/gist_id}","starred_url":"https://api.github.com/users/aashikam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aashikam/subscriptions","organizations_url":"https://api.github.com/users/aashikam/orgs","repos_url":"https://api.github.com/users/aashikam/repos","events_url":"https://api.github.com/users/aashikam/events{/privacy}","received_events_url":"https://api.github.com/users/aashikam/received_events","type":"User","site_admin":false},"body":"Resolved","created_at":"2018-11-16T08:13:50Z","updated_at":"2018-11-16T08:13:50Z","html_url":"https://github.com/ballerina-platform/ballerina-lang/pull/11343#discussion_r234119276","pull_request_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/pulls/11343","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/ballerina-platform/ballerina-lang/pulls/comments/234119276"},"html":{"href":"https://github.com/ballerina-platform/ballerina-lang/pull/11343#discussion_r234119276"},"pull_request":{"href":"https://api.github.com/repos/ballerina-platform/ballerina-lang/pulls/11343"}},"in_reply_to_id":233694422},"pull_request":{"url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/pulls/11343","id":230469918,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMwNDY5OTE4","html_url":"https://github.com/ballerina-platform/ballerina-lang/pull/11343","diff_url":"https://github.com/ballerina-platform/ballerina-lang/pull/11343.diff","patch_url":"https://github.com/ballerina-platform/ballerina-lang/pull/11343.patch","issue_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/issues/11343","number":11343,"state":"open","locked":false,"title":"Update JMS package with the typeguard changes","user":{"login":"aashikam","id":39673615,"node_id":"MDQ6VXNlcjM5NjczNjE1","avatar_url":"https://avatars3.githubusercontent.com/u/39673615?v=4","gravatar_id":"","url":"https://api.github.com/users/aashikam","html_url":"https://github.com/aashikam","followers_url":"https://api.github.com/users/aashikam/followers","following_url":"https://api.github.com/users/aashikam/following{/other_user}","gists_url":"https://api.github.com/users/aashikam/gists{/gist_id}","starred_url":"https://api.github.com/users/aashikam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aashikam/subscriptions","organizations_url":"https://api.github.com/users/aashikam/orgs","repos_url":"https://api.github.com/users/aashikam/repos","events_url":"https://api.github.com/users/aashikam/events{/privacy}","received_events_url":"https://api.github.com/users/aashikam/received_events","type":"User","site_admin":false},"body":"## Purpose\r\nFixes the typeguard syntax changes in the JMS package. ","created_at":"2018-11-13T13:13:04Z","updated_at":"2018-11-16T08:13:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"786dce2502ba2bbdffae74c7aa9263b5d27e255e","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/pulls/11343/commits","review_comments_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/pulls/11343/comments","review_comment_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/issues/11343/comments","statuses_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/statuses/cde2080c852f9386d3573f01373e00d5b9f3f4a2","head":{"label":"aashikam:errors_refactor","ref":"errors_refactor","sha":"cde2080c852f9386d3573f01373e00d5b9f3f4a2","user":{"login":"aashikam","id":39673615,"node_id":"MDQ6VXNlcjM5NjczNjE1","avatar_url":"https://avatars3.githubusercontent.com/u/39673615?v=4","gravatar_id":"","url":"https://api.github.com/users/aashikam","html_url":"https://github.com/aashikam","followers_url":"https://api.github.com/users/aashikam/followers","following_url":"https://api.github.com/users/aashikam/following{/other_user}","gists_url":"https://api.github.com/users/aashikam/gists{/gist_id}","starred_url":"https://api.github.com/users/aashikam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aashikam/subscriptions","organizations_url":"https://api.github.com/users/aashikam/orgs","repos_url":"https://api.github.com/users/aashikam/repos","events_url":"https://api.github.com/users/aashikam/events{/privacy}","received_events_url":"https://api.github.com/users/aashikam/received_events","type":"User","site_admin":false},"repo":{"id":149721752,"node_id":"MDEwOlJlcG9zaXRvcnkxNDk3MjE3NTI=","name":"ballerina-lang","full_name":"aashikam/ballerina-lang","private":false,"owner":{"login":"aashikam","id":39673615,"node_id":"MDQ6VXNlcjM5NjczNjE1","avatar_url":"https://avatars3.githubusercontent.com/u/39673615?v=4","gravatar_id":"","url":"https://api.github.com/users/aashikam","html_url":"https://github.com/aashikam","followers_url":"https://api.github.com/users/aashikam/followers","following_url":"https://api.github.com/users/aashikam/following{/other_user}","gists_url":"https://api.github.com/users/aashikam/gists{/gist_id}","starred_url":"https://api.github.com/users/aashikam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aashikam/subscriptions","organizations_url":"https://api.github.com/users/aashikam/orgs","repos_url":"https://api.github.com/users/aashikam/repos","events_url":"https://api.github.com/users/aashikam/events{/privacy}","received_events_url":"https://api.github.com/users/aashikam/received_events","type":"User","site_admin":false},"html_url":"https://github.com/aashikam/ballerina-lang","description":"Ballerina is a compiled, transactional, statically and strongly typed programming language with textual and graphical syntaxes.","fork":true,"url":"https://api.github.com/repos/aashikam/ballerina-lang","forks_url":"https://api.github.com/repos/aashikam/ballerina-lang/forks","keys_url":"https://api.github.com/repos/aashikam/ballerina-lang/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aashikam/ballerina-lang/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aashikam/ballerina-lang/teams","hooks_url":"https://api.github.com/repos/aashikam/ballerina-lang/hooks","issue_events_url":"https://api.github.com/repos/aashikam/ballerina-lang/issues/events{/number}","events_url":"https://api.github.com/repos/aashikam/ballerina-lang/events","assignees_url":"https://api.github.com/repos/aashikam/ballerina-lang/assignees{/user}","branches_url":"https://api.github.com/repos/aashikam/ballerina-lang/branches{/branch}","tags_url":"https://api.github.com/repos/aashikam/ballerina-lang/tags","blobs_url":"https://api.github.com/repos/aashikam/ballerina-lang/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aashikam/ballerina-lang/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aashikam/ballerina-lang/git/refs{/sha}","trees_url":"https://api.github.com/repos/aashikam/ballerina-lang/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aashikam/ballerina-lang/statuses/{sha}","languages_url":"https://api.github.com/repos/aashikam/ballerina-lang/languages","stargazers_url":"https://api.github.com/repos/aashikam/ballerina-lang/stargazers","contributors_url":"https://api.github.com/repos/aashikam/ballerina-lang/contributors","subscribers_url":"https://api.github.com/repos/aashikam/ballerina-lang/subscribers","subscription_url":"https://api.github.com/repos/aashikam/ballerina-lang/subscription","commits_url":"https://api.github.com/repos/aashikam/ballerina-lang/commits{/sha}","git_commits_url":"https://api.github.com/repos/aashikam/ballerina-lang/git/commits{/sha}","comments_url":"https://api.github.com/repos/aashikam/ballerina-lang/comments{/number}","issue_comment_url":"https://api.github.com/repos/aashikam/ballerina-lang/issues/comments{/number}","contents_url":"https://api.github.com/repos/aashikam/ballerina-lang/contents/{+path}","compare_url":"https://api.github.com/repos/aashikam/ballerina-lang/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aashikam/ballerina-lang/merges","archive_url":"https://api.github.com/repos/aashikam/ballerina-lang/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aashikam/ballerina-lang/downloads","issues_url":"https://api.github.com/repos/aashikam/ballerina-lang/issues{/number}","pulls_url":"https://api.github.com/repos/aashikam/ballerina-lang/pulls{/number}","milestones_url":"https://api.github.com/repos/aashikam/ballerina-lang/milestones{/number}","notifications_url":"https://api.github.com/repos/aashikam/ballerina-lang/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aashikam/ballerina-lang/labels{/name}","releases_url":"https://api.github.com/repos/aashikam/ballerina-lang/releases{/id}","deployments_url":"https://api.github.com/repos/aashikam/ballerina-lang/deployments","created_at":"2018-09-21T06:46:03Z","updated_at":"2018-09-21T06:46:30Z","pushed_at":"2018-11-16T07:59:14Z","git_url":"git://github.com/aashikam/ballerina-lang.git","ssh_url":"git@github.com:aashikam/ballerina-lang.git","clone_url":"https://github.com/aashikam/ballerina-lang.git","svn_url":"https://github.com/aashikam/ballerina-lang","homepage":"","size":271782,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ballerina-platform:error_refactor","ref":"error_refactor","sha":"b927066e35e57f96446311ce9040bbb226cac6ac","user":{"login":"ballerina-platform","id":34733518,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM0NzMzNTE4","avatar_url":"https://avatars2.githubusercontent.com/u/34733518?v=4","gravatar_id":"","url":"https://api.github.com/users/ballerina-platform","html_url":"https://github.com/ballerina-platform","followers_url":"https://api.github.com/users/ballerina-platform/followers","following_url":"https://api.github.com/users/ballerina-platform/following{/other_user}","gists_url":"https://api.github.com/users/ballerina-platform/gists{/gist_id}","starred_url":"https://api.github.com/users/ballerina-platform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ballerina-platform/subscriptions","organizations_url":"https://api.github.com/users/ballerina-platform/orgs","repos_url":"https://api.github.com/users/ballerina-platform/repos","events_url":"https://api.github.com/users/ballerina-platform/events{/privacy}","received_events_url":"https://api.github.com/users/ballerina-platform/received_events","type":"Organization","site_admin":false},"repo":{"id":73930305,"node_id":"MDEwOlJlcG9zaXRvcnk3MzkzMDMwNQ==","name":"ballerina-lang","full_name":"ballerina-platform/ballerina-lang","private":false,"owner":{"login":"ballerina-platform","id":34733518,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM0NzMzNTE4","avatar_url":"https://avatars2.githubusercontent.com/u/34733518?v=4","gravatar_id":"","url":"https://api.github.com/users/ballerina-platform","html_url":"https://github.com/ballerina-platform","followers_url":"https://api.github.com/users/ballerina-platform/followers","following_url":"https://api.github.com/users/ballerina-platform/following{/other_user}","gists_url":"https://api.github.com/users/ballerina-platform/gists{/gist_id}","starred_url":"https://api.github.com/users/ballerina-platform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ballerina-platform/subscriptions","organizations_url":"https://api.github.com/users/ballerina-platform/orgs","repos_url":"https://api.github.com/users/ballerina-platform/repos","events_url":"https://api.github.com/users/ballerina-platform/events{/privacy}","received_events_url":"https://api.github.com/users/ballerina-platform/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/ballerina-platform/ballerina-lang","description":"Ballerina is a compiled, transactional, statically and strongly typed programming language with textual and graphical syntaxes.","fork":false,"url":"https://api.github.com/repos/ballerina-platform/ballerina-lang","forks_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/forks","keys_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/teams","hooks_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/hooks","issue_events_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/issues/events{/number}","events_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/events","assignees_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/assignees{/user}","branches_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/branches{/branch}","tags_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/tags","blobs_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/git/refs{/sha}","trees_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/statuses/{sha}","languages_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/languages","stargazers_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/stargazers","contributors_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/contributors","subscribers_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/subscribers","subscription_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/subscription","commits_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/commits{/sha}","git_commits_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/git/commits{/sha}","comments_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/comments{/number}","issue_comment_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/issues/comments{/number}","contents_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/contents/{+path}","compare_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/merges","archive_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/downloads","issues_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/issues{/number}","pulls_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/pulls{/number}","milestones_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/milestones{/number}","notifications_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/labels{/name}","releases_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/releases{/id}","deployments_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/deployments","created_at":"2016-11-16T14:58:44Z","updated_at":"2018-11-16T00:45:17Z","pushed_at":"2018-11-16T08:12:42Z","git_url":"git://github.com/ballerina-platform/ballerina-lang.git","ssh_url":"git@github.com:ballerina-platform/ballerina-lang.git","clone_url":"https://github.com/ballerina-platform/ballerina-lang.git","svn_url":"https://github.com/ballerina-platform/ballerina-lang","homepage":"","size":276437,"stargazers_count":1485,"watchers_count":1485,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":408,"mirror_url":null,"archived":false,"open_issues_count":620,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":408,"open_issues":620,"watchers":1485,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ballerina-platform/ballerina-lang/pulls/11343"},"html":{"href":"https://github.com/ballerina-platform/ballerina-lang/pull/11343"},"issue":{"href":"https://api.github.com/repos/ballerina-platform/ballerina-lang/issues/11343"},"comments":{"href":"https://api.github.com/repos/ballerina-platform/ballerina-lang/issues/11343/comments"},"review_comments":{"href":"https://api.github.com/repos/ballerina-platform/ballerina-lang/pulls/11343/comments"},"review_comment":{"href":"https://api.github.com/repos/ballerina-platform/ballerina-lang/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ballerina-platform/ballerina-lang/pulls/11343/commits"},"statuses":{"href":"https://api.github.com/repos/ballerina-platform/ballerina-lang/statuses/cde2080c852f9386d3573f01373e00d5b9f3f4a2"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"aashikam"}}