{"action":"closed","issue":{"url":"https://api.github.com/repos/karamelchef/karamel/issues/73","labels_url":"https://api.github.com/repos/karamelchef/karamel/issues/73/labels{/name}","comments_url":"https://api.github.com/repos/karamelchef/karamel/issues/73/comments","events_url":"https://api.github.com/repos/karamelchef/karamel/issues/73/events","html_url":"https://github.com/karamelchef/karamel/issues/73","id":81382082,"number":73,"title":"Replace null checks with Optional","user":{"login":"alorlea","id":3266413,"avatar_url":"https://avatars.githubusercontent.com/u/3266413?v=3","gravatar_id":"","url":"https://api.github.com/users/alorlea","html_url":"https://github.com/alorlea","followers_url":"https://api.github.com/users/alorlea/followers","following_url":"https://api.github.com/users/alorlea/following{/other_user}","gists_url":"https://api.github.com/users/alorlea/gists{/gist_id}","starred_url":"https://api.github.com/users/alorlea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alorlea/subscriptions","organizations_url":"https://api.github.com/users/alorlea/orgs","repos_url":"https://api.github.com/users/alorlea/repos","events_url":"https://api.github.com/users/alorlea/events{/privacy}","received_events_url":"https://api.github.com/users/alorlea/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/karamelchef/karamel/labels/enhancement_medium","name":"enhancement_medium","color":"6798e2"},{"url":"https://api.github.com/repos/karamelchef/karamel/labels/under_discussion","name":"under_discussion","color":"fbca04"}],"state":"closed","locked":false,"assignee":{"login":"alorlea","id":3266413,"avatar_url":"https://avatars.githubusercontent.com/u/3266413?v=3","gravatar_id":"","url":"https://api.github.com/users/alorlea","html_url":"https://github.com/alorlea","followers_url":"https://api.github.com/users/alorlea/followers","following_url":"https://api.github.com/users/alorlea/following{/other_user}","gists_url":"https://api.github.com/users/alorlea/gists{/gist_id}","starred_url":"https://api.github.com/users/alorlea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alorlea/subscriptions","organizations_url":"https://api.github.com/users/alorlea/orgs","repos_url":"https://api.github.com/users/alorlea/repos","events_url":"https://api.github.com/users/alorlea/events{/privacy}","received_events_url":"https://api.github.com/users/alorlea/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-05-27T10:07:55Z","updated_at":"2015-07-17T12:53:59Z","closed_at":"2015-07-17T12:53:59Z","body":"I have seen around the code that we do null checks and usually it leads to very bad antipatterns making later the code difficult to fix bugs due to null.\r\n\r\nOne nice way to get rid of this is by using Google's Guava Optional or Java 8 Optional leading to better and clearer code.\r\n\r\nhttps://www.voxxed.com/blog/2015/05/why-even-use-java-8-optional/\r\n\r\nI recommend, we try to use it in our code and even will give better maintainability. We can try to include it with new code."}}