{"action":"created","issue":{"url":"https://api.github.com/repos/SpartanRefactoring/Spartanizer/issues/986","repository_url":"https://api.github.com/repos/SpartanRefactoring/Spartanizer","labels_url":"https://api.github.com/repos/SpartanRefactoring/Spartanizer/issues/986/labels{/name}","comments_url":"https://api.github.com/repos/SpartanRefactoring/Spartanizer/issues/986/comments","events_url":"https://api.github.com/repos/SpartanRefactoring/Spartanizer/issues/986/events","html_url":"https://github.com/SpartanRefactoring/Spartanizer/issues/986","id":196653229,"number":986,"title":"Bug in TernaryExpander","user":{"login":"OriRoth","id":15183108,"avatar_url":"https://avatars.githubusercontent.com/u/15183108?v=3","gravatar_id":"","url":"https://api.github.com/users/OriRoth","html_url":"https://github.com/OriRoth","followers_url":"https://api.github.com/users/OriRoth/followers","following_url":"https://api.github.com/users/OriRoth/following{/other_user}","gists_url":"https://api.github.com/users/OriRoth/gists{/gist_id}","starred_url":"https://api.github.com/users/OriRoth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OriRoth/subscriptions","organizations_url":"https://api.github.com/users/OriRoth/orgs","repos_url":"https://api.github.com/users/OriRoth/repos","events_url":"https://api.github.com/users/OriRoth/events{/privacy}","received_events_url":"https://api.github.com/users/OriRoth/received_events","type":"User","site_admin":false},"labels":[{"id":335087650,"url":"https://api.github.com/repos/SpartanRefactoring/Spartanizer/labels/bug","name":"bug","color":"d93f0b","default":true}],"state":"closed","locked":false,"assignee":{"login":"ravivos","id":7875588,"avatar_url":"https://avatars.githubusercontent.com/u/7875588?v=3","gravatar_id":"","url":"https://api.github.com/users/ravivos","html_url":"https://github.com/ravivos","followers_url":"https://api.github.com/users/ravivos/followers","following_url":"https://api.github.com/users/ravivos/following{/other_user}","gists_url":"https://api.github.com/users/ravivos/gists{/gist_id}","starred_url":"https://api.github.com/users/ravivos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ravivos/subscriptions","organizations_url":"https://api.github.com/users/ravivos/orgs","repos_url":"https://api.github.com/users/ravivos/repos","events_url":"https://api.github.com/users/ravivos/events{/privacy}","received_events_url":"https://api.github.com/users/ravivos/received_events","type":"User","site_admin":false},"assignees":[{"login":"ravivos","id":7875588,"avatar_url":"https://avatars.githubusercontent.com/u/7875588?v=3","gravatar_id":"","url":"https://api.github.com/users/ravivos","html_url":"https://github.com/ravivos","followers_url":"https://api.github.com/users/ravivos/followers","following_url":"https://api.github.com/users/ravivos/following{/other_user}","gists_url":"https://api.github.com/users/ravivos/gists{/gist_id}","starred_url":"https://api.github.com/users/ravivos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ravivos/subscriptions","organizations_url":"https://api.github.com/users/ravivos/orgs","repos_url":"https://api.github.com/users/ravivos/repos","events_url":"https://api.github.com/users/ravivos/events{/privacy}","received_events_url":"https://api.github.com/users/ravivos/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/SpartanRefactoring/Spartanizer/milestones/16","html_url":"https://github.com/SpartanRefactoring/Spartanizer/milestone/16","labels_url":"https://api.github.com/repos/SpartanRefactoring/Spartanizer/milestones/16/labels","id":2041407,"number":16,"title":"Sprint-2: Version 2.8","description":"End of semester release","creator":{"login":"yossigil","id":12775400,"avatar_url":"https://avatars.githubusercontent.com/u/12775400?v=3","gravatar_id":"","url":"https://api.github.com/users/yossigil","html_url":"https://github.com/yossigil","followers_url":"https://api.github.com/users/yossigil/followers","following_url":"https://api.github.com/users/yossigil/following{/other_user}","gists_url":"https://api.github.com/users/yossigil/gists{/gist_id}","starred_url":"https://api.github.com/users/yossigil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yossigil/subscriptions","organizations_url":"https://api.github.com/users/yossigil/orgs","repos_url":"https://api.github.com/users/yossigil/repos","events_url":"https://api.github.com/users/yossigil/events{/privacy}","received_events_url":"https://api.github.com/users/yossigil/received_events","type":"User","site_admin":false},"open_issues":91,"closed_issues":23,"state":"open","created_at":"2016-10-01T09:29:03Z","updated_at":"2016-12-20T21:31:00Z","due_on":"2017-01-26T08:00:00Z","closed_at":null},"comments":2,"created_at":"2016-12-20T11:47:53Z","updated_at":"2016-12-20T21:44:54Z","closed_at":"2016-12-20T21:31:00Z","body":"*Originally posted by @tomerdragucki*\r\nI ran into a bug:\r\n```Java\r\na += x ? 5 : 3;\r\n```\r\nbecomes:\r\n```Java\r\nif (x)\r\n  return 5;\r\nelse\r\n  return 3;\r\n```\r\n@ravivos I opened a new issue for implementing the += with trenary as a new expander but I guess inserting it into your expander is also an option."},"comment":{"url":"https://api.github.com/repos/SpartanRefactoring/Spartanizer/issues/comments/268368188","html_url":"https://github.com/SpartanRefactoring/Spartanizer/issues/986#issuecomment-268368188","issue_url":"https://api.github.com/repos/SpartanRefactoring/Spartanizer/issues/986","id":268368188,"user":{"login":"OriRoth","id":15183108,"avatar_url":"https://avatars.githubusercontent.com/u/15183108?v=3","gravatar_id":"","url":"https://api.github.com/users/OriRoth","html_url":"https://github.com/OriRoth","followers_url":"https://api.github.com/users/OriRoth/followers","following_url":"https://api.github.com/users/OriRoth/following{/other_user}","gists_url":"https://api.github.com/users/OriRoth/gists{/gist_id}","starred_url":"https://api.github.com/users/OriRoth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OriRoth/subscriptions","organizations_url":"https://api.github.com/users/OriRoth/orgs","repos_url":"https://api.github.com/users/OriRoth/repos","events_url":"https://api.github.com/users/OriRoth/events{/privacy}","received_events_url":"https://api.github.com/users/OriRoth/received_events","type":"User","site_admin":false},"created_at":"2016-12-20T21:44:54Z","updated_at":"2016-12-20T21:44:54Z","body":"Try this:\r\n```Java\r\nswitch (1) {\r\n  case f(x -> x |= b ? true : false):\r\n    break;\r\n}\r\n```"}}
{"actor":{"display_login":"OriRoth"}}