{"action":"opened","issue":{"url":"https://api.github.com/repos/sevntu-checkstyle/sevntu.checkstyle/issues/559","repository_url":"https://api.github.com/repos/sevntu-checkstyle/sevntu.checkstyle","labels_url":"https://api.github.com/repos/sevntu-checkstyle/sevntu.checkstyle/issues/559/labels{/name}","comments_url":"https://api.github.com/repos/sevntu-checkstyle/sevntu.checkstyle/issues/559/comments","events_url":"https://api.github.com/repos/sevntu-checkstyle/sevntu.checkstyle/issues/559/events","html_url":"https://github.com/sevntu-checkstyle/sevntu.checkstyle/issues/559","id":197844882,"number":559,"title":"AvoidNotShortCircuitOperatorsForBoolean reports multi catch case","user":{"login":"george-007","id":1450087,"avatar_url":"https://avatars.githubusercontent.com/u/1450087?v=3","gravatar_id":"","url":"https://api.github.com/users/george-007","html_url":"https://github.com/george-007","followers_url":"https://api.github.com/users/george-007/followers","following_url":"https://api.github.com/users/george-007/following{/other_user}","gists_url":"https://api.github.com/users/george-007/gists{/gist_id}","starred_url":"https://api.github.com/users/george-007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/george-007/subscriptions","organizations_url":"https://api.github.com/users/george-007/orgs","repos_url":"https://api.github.com/users/george-007/repos","events_url":"https://api.github.com/users/george-007/events{/privacy}","received_events_url":"https://api.github.com/users/george-007/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-28T12:20:04Z","updated_at":"2016-12-28T12:20:04Z","closed_at":null,"body":"/var/tmp $ javac Test.java\r\n\r\n\r\n/var/tmp $ cat Test.java\r\n```java\r\npublic class Test {\r\n    public class InnerClass {\r\n        public Runnable getRunnable() {\r\n            return new Runnable() {\r\n                @Override\r\n                public void run() {\r\n                }\r\n                public boolean test() {\r\n                    try {\r\n                    } catch (IllegalArgumentException | NullPointerException e) {\r\n                        return false;\r\n                    }\r\n                    return true;\r\n                }\r\n            };\r\n\r\n        }\r\n    }\r\n\r\n}\r\n```\r\n\r\n/var/tmp $ cat config.xml\r\n```xml\r\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<!DOCTYPE module PUBLIC\r\n        \"-//Puppy Crawl//DTD Check Configuration 1.3//EN\"\r\n        \"http://www.puppycrawl.com/dtds/configuration_1_3.dtd\">\r\n\r\n<module name=\"Checker\">\r\n    <module name=\"TreeWalker\">\r\n        <module name=\"AvoidNotShortCircuitOperatorsForBoolean\"/>\r\n    </module>\r\n</module>\r\n```\r\n```\r\n/var/tmp $ # java -classpath sevntu-checks-1.23.0.jar:checkstyle-7.3-all.jar com.puppycrawl.tools.checkstyle.Main  -c config.xml Test.java\r\n```\r\n```\r\nStarting audit...\r\n[ERROR] /root/checkstyle/Test.java:10:55: Short-circuit operator should be used instead of '|'. [AvoidNotShortCircuitOperatorsForBoolean]\r\nAudit done.\r\nCheckstyle ends with 1 errors.\r\n```\r\n\r\nThe following code should not be reported as a violation:\r\n```\r\n} catch (IllegalArgumentException | NullPointerException e) {\r\n```"}}
{"actor":{"display_login":"george-007"}}