{"action":"created","issue":{"url":"https://api.github.com/repos/atom/language-java/issues/179","repository_url":"https://api.github.com/repos/atom/language-java","labels_url":"https://api.github.com/repos/atom/language-java/issues/179/labels{/name}","comments_url":"https://api.github.com/repos/atom/language-java/issues/179/comments","events_url":"https://api.github.com/repos/atom/language-java/issues/179/events","html_url":"https://github.com/atom/language-java/issues/179","id":386729938,"node_id":"MDU6SXNzdWUzODY3Mjk5Mzg=","number":179,"title":"`new` keyword messes with ternary operator when used in condition","user":{"login":"felixhao28","id":2417391,"node_id":"MDQ6VXNlcjI0MTczOTE=","avatar_url":"https://avatars3.githubusercontent.com/u/2417391?v=4","gravatar_id":"","url":"https://api.github.com/users/felixhao28","html_url":"https://github.com/felixhao28","followers_url":"https://api.github.com/users/felixhao28/followers","following_url":"https://api.github.com/users/felixhao28/following{/other_user}","gists_url":"https://api.github.com/users/felixhao28/gists{/gist_id}","starred_url":"https://api.github.com/users/felixhao28/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felixhao28/subscriptions","organizations_url":"https://api.github.com/users/felixhao28/orgs","repos_url":"https://api.github.com/users/felixhao28/repos","events_url":"https://api.github.com/users/felixhao28/events{/privacy}","received_events_url":"https://api.github.com/users/felixhao28/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-03T09:34:39Z","updated_at":"2018-12-03T12:02:16Z","closed_at":null,"author_association":"NONE","body":"### Description\r\n\r\n```java\r\npublic class A {\r\n    void f() {\r\n        String sex = new Random().nextInt(2) == 0 ? \"female\" : \"male\";\r\n        String sex = new Random().nextInt(2) ? \"female\" : \"male\";\r\n        String sex = Random().nextInt(2) ? \"female\" : \"male\";\r\n        String sex = new Random() ? \"female\" : \"male\";\r\n    }\r\n}\r\n```\r\n![image](https://user-images.githubusercontent.com/2417391/49365411-ad672680-f721-11e8-9cb2-5a08e34c8fa0.png)\r\n\r\n\r\n**Expected behavior:** [What you expect to happen]\r\n\r\nThe first string in \"true branch\" should be recognized as `string.quoted.double.java`, like in the third line."},"comment":{"url":"https://api.github.com/repos/atom/language-java/issues/comments/443686887","html_url":"https://github.com/atom/language-java/issues/179#issuecomment-443686887","issue_url":"https://api.github.com/repos/atom/language-java/issues/179","id":443686887,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MzY4Njg4Nw==","user":{"login":"sadikovi","id":7788766,"node_id":"MDQ6VXNlcjc3ODg3NjY=","avatar_url":"https://avatars3.githubusercontent.com/u/7788766?v=4","gravatar_id":"","url":"https://api.github.com/users/sadikovi","html_url":"https://github.com/sadikovi","followers_url":"https://api.github.com/users/sadikovi/followers","following_url":"https://api.github.com/users/sadikovi/following{/other_user}","gists_url":"https://api.github.com/users/sadikovi/gists{/gist_id}","starred_url":"https://api.github.com/users/sadikovi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sadikovi/subscriptions","organizations_url":"https://api.github.com/users/sadikovi/orgs","repos_url":"https://api.github.com/users/sadikovi/repos","events_url":"https://api.github.com/users/sadikovi/events{/privacy}","received_events_url":"https://api.github.com/users/sadikovi/received_events","type":"User","site_admin":false},"created_at":"2018-12-03T12:02:16Z","updated_at":"2018-12-03T12:02:16Z","author_association":"MEMBER","body":"Can you include the language-java version that you are testing against?"}}
{"actor":{"display_login":"sadikovi"}}