{"action":"created","issue":{"url":"https://api.github.com/repos/jOOQ/jOOL/issues/324","repository_url":"https://api.github.com/repos/jOOQ/jOOL","labels_url":"https://api.github.com/repos/jOOQ/jOOL/issues/324/labels{/name}","comments_url":"https://api.github.com/repos/jOOQ/jOOL/issues/324/comments","events_url":"https://api.github.com/repos/jOOQ/jOOL/issues/324/events","html_url":"https://github.com/jOOQ/jOOL/issues/324","id":277942052,"number":324,"title":"Let Unchecked.throwChecked return RuntimeException to improve control flow","user":{"login":"TheRealMarnes","id":3950300,"avatar_url":"https://avatars2.githubusercontent.com/u/3950300?v=4","gravatar_id":"","url":"https://api.github.com/users/TheRealMarnes","html_url":"https://github.com/TheRealMarnes","followers_url":"https://api.github.com/users/TheRealMarnes/followers","following_url":"https://api.github.com/users/TheRealMarnes/following{/other_user}","gists_url":"https://api.github.com/users/TheRealMarnes/gists{/gist_id}","starred_url":"https://api.github.com/users/TheRealMarnes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheRealMarnes/subscriptions","organizations_url":"https://api.github.com/users/TheRealMarnes/orgs","repos_url":"https://api.github.com/users/TheRealMarnes/repos","events_url":"https://api.github.com/users/TheRealMarnes/events{/privacy}","received_events_url":"https://api.github.com/users/TheRealMarnes/received_events","type":"User","site_admin":false},"labels":[{"id":138794233,"url":"https://api.github.com/repos/jOOQ/jOOL/labels/P:%20Medium","name":"P: Medium","color":"ffaaaa","default":false},{"id":83604554,"url":"https://api.github.com/repos/jOOQ/jOOL/labels/T:%20Enhancement","name":"T: Enhancement","color":"cccccc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/jOOQ/jOOL/milestones/13","html_url":"https://github.com/jOOQ/jOOL/milestone/13","labels_url":"https://api.github.com/repos/jOOQ/jOOL/milestones/13/labels","id":1985584,"number":13,"title":"Version 0.9.14","description":"","creator":{"login":"lukaseder","id":734593,"avatar_url":"https://avatars2.githubusercontent.com/u/734593?v=4","gravatar_id":"","url":"https://api.github.com/users/lukaseder","html_url":"https://github.com/lukaseder","followers_url":"https://api.github.com/users/lukaseder/followers","following_url":"https://api.github.com/users/lukaseder/following{/other_user}","gists_url":"https://api.github.com/users/lukaseder/gists{/gist_id}","starred_url":"https://api.github.com/users/lukaseder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukaseder/subscriptions","organizations_url":"https://api.github.com/users/lukaseder/orgs","repos_url":"https://api.github.com/users/lukaseder/repos","events_url":"https://api.github.com/users/lukaseder/events{/privacy}","received_events_url":"https://api.github.com/users/lukaseder/received_events","type":"User","site_admin":false},"open_issues":46,"closed_issues":0,"state":"open","created_at":"2016-09-06T07:58:27Z","updated_at":"2018-02-28T13:49:57Z","due_on":null,"closed_at":null},"comments":16,"created_at":"2017-11-29T23:13:04Z","updated_at":"2018-03-01T09:54:48Z","closed_at":null,"author_association":"NONE","body":"### AS-IS\r\n\r\n```java\r\nclass Unchecked {\r\n\tpublic static void throwChecked(Throwable t) {\r\n\t\tSeqUtils.sneakyThrow(t);\r\n\t}\r\n}\r\n```\r\n\r\n```java\r\npublic Object foo() {\r\n\tif (condition) {\r\n\t\treturn bar();\r\n\t} else {\r\n\t\tUnchecked.throwChecked(new Exception());\r\n\t\treturn null;\r\n\t}\r\n}\r\n```\r\n\r\n### TO-BE\r\n\r\n```java\r\nclass Unchecked {\r\n\tpublic static <T> T throwChecked(Throwable t) {\r\n\t\tSeqUtils.sneakyThrow(t);\r\n\t\treturn null;\r\n\t}\r\n}\r\n```\r\n\r\n```java\r\npublic Object foo() {\r\n\tif (condition) {\r\n\t\treturn bar();\r\n\t} else {\r\n\t\treturn Unchecked.throwChecked(new Exception());\r\n\t}\r\n}\r\n```\r\n\r\n### Versions:\r\n\r\n- jOOλ: 0.9.12\r\n- Java: 1.8.0.91\r\n"},"comment":{"url":"https://api.github.com/repos/jOOQ/jOOL/issues/comments/369539104","html_url":"https://github.com/jOOQ/jOOL/issues/324#issuecomment-369539104","issue_url":"https://api.github.com/repos/jOOQ/jOOL/issues/324","id":369539104,"user":{"login":"TheRealMarnes","id":3950300,"avatar_url":"https://avatars2.githubusercontent.com/u/3950300?v=4","gravatar_id":"","url":"https://api.github.com/users/TheRealMarnes","html_url":"https://github.com/TheRealMarnes","followers_url":"https://api.github.com/users/TheRealMarnes/followers","following_url":"https://api.github.com/users/TheRealMarnes/following{/other_user}","gists_url":"https://api.github.com/users/TheRealMarnes/gists{/gist_id}","starred_url":"https://api.github.com/users/TheRealMarnes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheRealMarnes/subscriptions","organizations_url":"https://api.github.com/users/TheRealMarnes/orgs","repos_url":"https://api.github.com/users/TheRealMarnes/repos","events_url":"https://api.github.com/users/TheRealMarnes/events{/privacy}","received_events_url":"https://api.github.com/users/TheRealMarnes/received_events","type":"User","site_admin":false},"created_at":"2018-03-01T09:54:48Z","updated_at":"2018-03-01T09:54:48Z","author_association":"NONE","body":"Honestly, I don't think anyone will be confused because of that :/ And if someone is, they can see at a glance what it does when they open the source via their IDE, or they can see the javadoc that any decent IDE will also just inline..."}}
{"actor":{"display_login":"TheRealMarnes"}}