{"action":"created","comment":{"url":"https://api.github.com/repos/openhab/openhab/pulls/comments/54046542","id":54046542,"diff_hunk":"@@ -478,18 +485,28 @@ public String getHost() {\n             return host;\n         }\n \n+        public String getSerialPortName(){\n+            return serialPortName;\n+        }    \n+\n         public int getPort() {\n             return port;\n         }\n \n         @Override\n         public String toString() {\n-            return \"Device [id=\" + deviceId + \", host=\" + host + \", port=\" + port + \"]\";\n+            if (serialPortName!=null)\n+                return \"Device [id=\" + deviceId + \", serialPort=\" + serialPortName + \"]\";\n+            else\n+                return \"Device [id=\" + deviceId + \", host=\" + host + \", port=\" + port + \"]\";","path":"bundles/binding/org.openhab.binding.onkyo/src/main/java/org/openhab/binding/onkyo/internal/OnkyoBinding.java","position":113,"original_position":113,"commit_id":"da70217adae3c018df7314f91e1076c68b5f798f","original_commit_id":"da70217adae3c018df7314f91e1076c68b5f798f","user":{"login":"watou","id":3008217,"avatar_url":"https://avatars.githubusercontent.com/u/3008217?v=3","gravatar_id":"","url":"https://api.github.com/users/watou","html_url":"https://github.com/watou","followers_url":"https://api.github.com/users/watou/followers","following_url":"https://api.github.com/users/watou/following{/other_user}","gists_url":"https://api.github.com/users/watou/gists{/gist_id}","starred_url":"https://api.github.com/users/watou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/watou/subscriptions","organizations_url":"https://api.github.com/users/watou/orgs","repos_url":"https://api.github.com/users/watou/repos","events_url":"https://api.github.com/users/watou/events{/privacy}","received_events_url":"https://api.github.com/users/watou/received_events","type":"User","site_admin":false},"body":"always use curly braces, even for one-line statements.","created_at":"2016-02-25T04:08:25Z","updated_at":"2016-02-25T04:08:25Z","html_url":"https://github.com/openhab/openhab/pull/4100#discussion_r54046542","pull_request_url":"https://api.github.com/repos/openhab/openhab/pulls/4100","_links":{"self":{"href":"https://api.github.com/repos/openhab/openhab/pulls/comments/54046542"},"html":{"href":"https://github.com/openhab/openhab/pull/4100#discussion_r54046542"},"pull_request":{"href":"https://api.github.com/repos/openhab/openhab/pulls/4100"}}},"pull_request":{"url":"https://api.github.com/repos/openhab/openhab/pulls/4100","id":60589321,"html_url":"https://github.com/openhab/openhab/pull/4100","diff_url":"https://github.com/openhab/openhab/pull/4100.diff","patch_url":"https://github.com/openhab/openhab/pull/4100.patch","issue_url":"https://api.github.com/repos/openhab/openhab/issues/4100","number":4100,"state":"open","locked":false,"title":"modified to support both network based and serial based Onkyo receivers","user":{"login":"basriram","id":5576115,"avatar_url":"https://avatars.githubusercontent.com/u/5576115?v=3","gravatar_id":"","url":"https://api.github.com/users/basriram","html_url":"https://github.com/basriram","followers_url":"https://api.github.com/users/basriram/followers","following_url":"https://api.github.com/users/basriram/following{/other_user}","gists_url":"https://api.github.com/users/basriram/gists{/gist_id}","starred_url":"https://api.github.com/users/basriram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/basriram/subscriptions","organizations_url":"https://api.github.com/users/basriram/orgs","repos_url":"https://api.github.com/users/basriram/repos","events_url":"https://api.github.com/users/basriram/events{/privacy}","received_events_url":"https://api.github.com/users/basriram/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-02-24T22:21:37Z","updated_at":"2016-02-25T04:08:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f1b1fbfff3fd117b40e6f6c68eadf2f12ca32143","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/openhab/openhab/pulls/4100/commits","review_comments_url":"https://api.github.com/repos/openhab/openhab/pulls/4100/comments","review_comment_url":"https://api.github.com/repos/openhab/openhab/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openhab/openhab/issues/4100/comments","statuses_url":"https://api.github.com/repos/openhab/openhab/statuses/da70217adae3c018df7314f91e1076c68b5f798f","head":{"label":"basriram:master","ref":"master","sha":"da70217adae3c018df7314f91e1076c68b5f798f","user":{"login":"basriram","id":5576115,"avatar_url":"https://avatars.githubusercontent.com/u/5576115?v=3","gravatar_id":"","url":"https://api.github.com/users/basriram","html_url":"https://github.com/basriram","followers_url":"https://api.github.com/users/basriram/followers","following_url":"https://api.github.com/users/basriram/following{/other_user}","gists_url":"https://api.github.com/users/basriram/gists{/gist_id}","starred_url":"https://api.github.com/users/basriram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/basriram/subscriptions","organizations_url":"https://api.github.com/users/basriram/orgs","repos_url":"https://api.github.com/users/basriram/repos","events_url":"https://api.github.com/users/basriram/events{/privacy}","received_events_url":"https://api.github.com/users/basriram/received_events","type":"User","site_admin":false},"repo":{"id":52476359,"name":"openhab","full_name":"basriram/openhab","owner":{"login":"basriram","id":5576115,"avatar_url":"https://avatars.githubusercontent.com/u/5576115?v=3","gravatar_id":"","url":"https://api.github.com/users/basriram","html_url":"https://github.com/basriram","followers_url":"https://api.github.com/users/basriram/followers","following_url":"https://api.github.com/users/basriram/following{/other_user}","gists_url":"https://api.github.com/users/basriram/gists{/gist_id}","starred_url":"https://api.github.com/users/basriram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/basriram/subscriptions","organizations_url":"https://api.github.com/users/basriram/orgs","repos_url":"https://api.github.com/users/basriram/repos","events_url":"https://api.github.com/users/basriram/events{/privacy}","received_events_url":"https://api.github.com/users/basriram/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/basriram/openhab","description":"Source code of the open Home Automation Bus (openHAB)","fork":true,"url":"https://api.github.com/repos/basriram/openhab","forks_url":"https://api.github.com/repos/basriram/openhab/forks","keys_url":"https://api.github.com/repos/basriram/openhab/keys{/key_id}","collaborators_url":"https://api.github.com/repos/basriram/openhab/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/basriram/openhab/teams","hooks_url":"https://api.github.com/repos/basriram/openhab/hooks","issue_events_url":"https://api.github.com/repos/basriram/openhab/issues/events{/number}","events_url":"https://api.github.com/repos/basriram/openhab/events","assignees_url":"https://api.github.com/repos/basriram/openhab/assignees{/user}","branches_url":"https://api.github.com/repos/basriram/openhab/branches{/branch}","tags_url":"https://api.github.com/repos/basriram/openhab/tags","blobs_url":"https://api.github.com/repos/basriram/openhab/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/basriram/openhab/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/basriram/openhab/git/refs{/sha}","trees_url":"https://api.github.com/repos/basriram/openhab/git/trees{/sha}","statuses_url":"https://api.github.com/repos/basriram/openhab/statuses/{sha}","languages_url":"https://api.github.com/repos/basriram/openhab/languages","stargazers_url":"https://api.github.com/repos/basriram/openhab/stargazers","contributors_url":"https://api.github.com/repos/basriram/openhab/contributors","subscribers_url":"https://api.github.com/repos/basriram/openhab/subscribers","subscription_url":"https://api.github.com/repos/basriram/openhab/subscription","commits_url":"https://api.github.com/repos/basriram/openhab/commits{/sha}","git_commits_url":"https://api.github.com/repos/basriram/openhab/git/commits{/sha}","comments_url":"https://api.github.com/repos/basriram/openhab/comments{/number}","issue_comment_url":"https://api.github.com/repos/basriram/openhab/issues/comments{/number}","contents_url":"https://api.github.com/repos/basriram/openhab/contents/{+path}","compare_url":"https://api.github.com/repos/basriram/openhab/compare/{base}...{head}","merges_url":"https://api.github.com/repos/basriram/openhab/merges","archive_url":"https://api.github.com/repos/basriram/openhab/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/basriram/openhab/downloads","issues_url":"https://api.github.com/repos/basriram/openhab/issues{/number}","pulls_url":"https://api.github.com/repos/basriram/openhab/pulls{/number}","milestones_url":"https://api.github.com/repos/basriram/openhab/milestones{/number}","notifications_url":"https://api.github.com/repos/basriram/openhab/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/basriram/openhab/labels{/name}","releases_url":"https://api.github.com/repos/basriram/openhab/releases{/id}","deployments_url":"https://api.github.com/repos/basriram/openhab/deployments","created_at":"2016-02-24T21:40:29Z","updated_at":"2016-02-24T21:40:44Z","pushed_at":"2016-02-24T21:55:41Z","git_url":"git://github.com/basriram/openhab.git","ssh_url":"git@github.com:basriram/openhab.git","clone_url":"https://github.com/basriram/openhab.git","svn_url":"https://github.com/basriram/openhab","homepage":null,"size":190643,"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":"openhab:master","ref":"master","sha":"e068a13158e31540713d459271cac10ad6cfec01","user":{"login":"openhab","id":1007353,"avatar_url":"https://avatars.githubusercontent.com/u/1007353?v=3","gravatar_id":"","url":"https://api.github.com/users/openhab","html_url":"https://github.com/openhab","followers_url":"https://api.github.com/users/openhab/followers","following_url":"https://api.github.com/users/openhab/following{/other_user}","gists_url":"https://api.github.com/users/openhab/gists{/gist_id}","starred_url":"https://api.github.com/users/openhab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openhab/subscriptions","organizations_url":"https://api.github.com/users/openhab/orgs","repos_url":"https://api.github.com/users/openhab/repos","events_url":"https://api.github.com/users/openhab/events{/privacy}","received_events_url":"https://api.github.com/users/openhab/received_events","type":"Organization","site_admin":false},"repo":{"id":12983151,"name":"openhab","full_name":"openhab/openhab","owner":{"login":"openhab","id":1007353,"avatar_url":"https://avatars.githubusercontent.com/u/1007353?v=3","gravatar_id":"","url":"https://api.github.com/users/openhab","html_url":"https://github.com/openhab","followers_url":"https://api.github.com/users/openhab/followers","following_url":"https://api.github.com/users/openhab/following{/other_user}","gists_url":"https://api.github.com/users/openhab/gists{/gist_id}","starred_url":"https://api.github.com/users/openhab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openhab/subscriptions","organizations_url":"https://api.github.com/users/openhab/orgs","repos_url":"https://api.github.com/users/openhab/repos","events_url":"https://api.github.com/users/openhab/events{/privacy}","received_events_url":"https://api.github.com/users/openhab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openhab/openhab","description":"Source code of the open Home Automation Bus (openHAB)","fork":false,"url":"https://api.github.com/repos/openhab/openhab","forks_url":"https://api.github.com/repos/openhab/openhab/forks","keys_url":"https://api.github.com/repos/openhab/openhab/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openhab/openhab/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openhab/openhab/teams","hooks_url":"https://api.github.com/repos/openhab/openhab/hooks","issue_events_url":"https://api.github.com/repos/openhab/openhab/issues/events{/number}","events_url":"https://api.github.com/repos/openhab/openhab/events","assignees_url":"https://api.github.com/repos/openhab/openhab/assignees{/user}","branches_url":"https://api.github.com/repos/openhab/openhab/branches{/branch}","tags_url":"https://api.github.com/repos/openhab/openhab/tags","blobs_url":"https://api.github.com/repos/openhab/openhab/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openhab/openhab/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openhab/openhab/git/refs{/sha}","trees_url":"https://api.github.com/repos/openhab/openhab/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openhab/openhab/statuses/{sha}","languages_url":"https://api.github.com/repos/openhab/openhab/languages","stargazers_url":"https://api.github.com/repos/openhab/openhab/stargazers","contributors_url":"https://api.github.com/repos/openhab/openhab/contributors","subscribers_url":"https://api.github.com/repos/openhab/openhab/subscribers","subscription_url":"https://api.github.com/repos/openhab/openhab/subscription","commits_url":"https://api.github.com/repos/openhab/openhab/commits{/sha}","git_commits_url":"https://api.github.com/repos/openhab/openhab/git/commits{/sha}","comments_url":"https://api.github.com/repos/openhab/openhab/comments{/number}","issue_comment_url":"https://api.github.com/repos/openhab/openhab/issues/comments{/number}","contents_url":"https://api.github.com/repos/openhab/openhab/contents/{+path}","compare_url":"https://api.github.com/repos/openhab/openhab/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openhab/openhab/merges","archive_url":"https://api.github.com/repos/openhab/openhab/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openhab/openhab/downloads","issues_url":"https://api.github.com/repos/openhab/openhab/issues{/number}","pulls_url":"https://api.github.com/repos/openhab/openhab/pulls{/number}","milestones_url":"https://api.github.com/repos/openhab/openhab/milestones{/number}","notifications_url":"https://api.github.com/repos/openhab/openhab/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openhab/openhab/labels{/name}","releases_url":"https://api.github.com/repos/openhab/openhab/releases{/id}","deployments_url":"https://api.github.com/repos/openhab/openhab/deployments","created_at":"2013-09-20T20:28:43Z","updated_at":"2016-02-24T22:34:07Z","pushed_at":"2016-02-25T04:03:53Z","git_url":"git://github.com/openhab/openhab.git","ssh_url":"git@github.com:openhab/openhab.git","clone_url":"https://github.com/openhab/openhab.git","svn_url":"https://github.com/openhab/openhab","homepage":null,"size":270974,"stargazers_count":2303,"watchers_count":2303,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1217,"mirror_url":null,"open_issues_count":512,"forks":1217,"open_issues":512,"watchers":2303,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openhab/openhab/pulls/4100"},"html":{"href":"https://github.com/openhab/openhab/pull/4100"},"issue":{"href":"https://api.github.com/repos/openhab/openhab/issues/4100"},"comments":{"href":"https://api.github.com/repos/openhab/openhab/issues/4100/comments"},"review_comments":{"href":"https://api.github.com/repos/openhab/openhab/pulls/4100/comments"},"review_comment":{"href":"https://api.github.com/repos/openhab/openhab/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openhab/openhab/pulls/4100/commits"},"statuses":{"href":"https://api.github.com/repos/openhab/openhab/statuses/da70217adae3c018df7314f91e1076c68b5f798f"}}}}