{"action":"created","issue":{"url":"https://api.github.com/repos/markiewb/nb-additional-hints/issues/60","labels_url":"https://api.github.com/repos/markiewb/nb-additional-hints/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/markiewb/nb-additional-hints/issues/60/comments","events_url":"https://api.github.com/repos/markiewb/nb-additional-hints/issues/60/events","html_url":"https://github.com/markiewb/nb-additional-hints/issues/60","id":67670499,"number":60,"title":"Convert to Optiona.ifPresent","user":{"login":"markiewb","id":1857095,"avatar_url":"https://avatars.githubusercontent.com/u/1857095?v=3","gravatar_id":"","url":"https://api.github.com/users/markiewb","html_url":"https://github.com/markiewb","followers_url":"https://api.github.com/users/markiewb/followers","following_url":"https://api.github.com/users/markiewb/following{/other_user}","gists_url":"https://api.github.com/users/markiewb/gists{/gist_id}","starred_url":"https://api.github.com/users/markiewb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markiewb/subscriptions","organizations_url":"https://api.github.com/users/markiewb/orgs","repos_url":"https://api.github.com/users/markiewb/repos","events_url":"https://api.github.com/users/markiewb/events{/privacy}","received_events_url":"https://api.github.com/users/markiewb/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/markiewb/nb-additional-hints/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-10T19:59:48Z","updated_at":"2015-05-19T16:35:55Z","closed_at":null,"body":"```\r\n        if (o.isPresent())\r\n        {\r\n            method(o.get());\r\n            obj.method(o.get());\r\n        }\r\n```\r\nto\r\n```\r\n        o.ifPresent((x)->{method(x); obj.method(x);});\r\n```"},"comment":{"url":"https://api.github.com/repos/markiewb/nb-additional-hints/issues/comments/103582827","html_url":"https://github.com/markiewb/nb-additional-hints/issues/60#issuecomment-103582827","issue_url":"https://api.github.com/repos/markiewb/nb-additional-hints/issues/60","id":103582827,"user":{"login":"markiewb","id":1857095,"avatar_url":"https://avatars.githubusercontent.com/u/1857095?v=3","gravatar_id":"","url":"https://api.github.com/users/markiewb","html_url":"https://github.com/markiewb","followers_url":"https://api.github.com/users/markiewb/followers","following_url":"https://api.github.com/users/markiewb/following{/other_user}","gists_url":"https://api.github.com/users/markiewb/gists{/gist_id}","starred_url":"https://api.github.com/users/markiewb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markiewb/subscriptions","organizations_url":"https://api.github.com/users/markiewb/orgs","repos_url":"https://api.github.com/users/markiewb/repos","events_url":"https://api.github.com/users/markiewb/events{/privacy}","received_events_url":"https://api.github.com/users/markiewb/received_events","type":"User","site_admin":false},"created_at":"2015-05-19T16:35:55Z","updated_at":"2015-05-19T16:35:55Z","body":"```\r\n                pts.ifPresent(x->result.add(x));\r\n==\r\n                if (pts.isPresent())\r\n                {\r\n                    result.add(pts.get());\r\n                }\r\n```"}}