{"action":"closed","issue":{"url":"https://api.github.com/repos/JnRouvignac/AutoRefactor/issues/304","repository_url":"https://api.github.com/repos/JnRouvignac/AutoRefactor","labels_url":"https://api.github.com/repos/JnRouvignac/AutoRefactor/issues/304/labels{/name}","comments_url":"https://api.github.com/repos/JnRouvignac/AutoRefactor/issues/304/comments","events_url":"https://api.github.com/repos/JnRouvignac/AutoRefactor/issues/304/events","html_url":"https://github.com/JnRouvignac/AutoRefactor/issues/304","id":253170429,"number":304,"title":"(DD) UseDiamondOperatorRefactoring - IndexOutOfBoundsException","user":{"login":"cal101","id":8849947,"avatar_url":"https://avatars0.githubusercontent.com/u/8849947?v=4","gravatar_id":"","url":"https://api.github.com/users/cal101","html_url":"https://github.com/cal101","followers_url":"https://api.github.com/users/cal101/followers","following_url":"https://api.github.com/users/cal101/following{/other_user}","gists_url":"https://api.github.com/users/cal101/gists{/gist_id}","starred_url":"https://api.github.com/users/cal101/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cal101/subscriptions","organizations_url":"https://api.github.com/users/cal101/orgs","repos_url":"https://api.github.com/users/cal101/repos","events_url":"https://api.github.com/users/cal101/events{/privacy}","received_events_url":"https://api.github.com/users/cal101/received_events","type":"User","site_admin":false},"labels":[{"id":30638835,"url":"https://api.github.com/repos/JnRouvignac/AutoRefactor/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-27T15:25:14Z","updated_at":"2018-03-05T20:00:57Z","closed_at":"2018-03-05T20:00:57Z","author_association":"CONTRIBUTOR","body":"```\r\nCaused by: java.lang.IndexOutOfBoundsException: Index: 2, Size: 2\r\n\tat java.util.ArrayList.rangeCheck(ArrayList.java:653)\r\n\tat java.util.ArrayList.get(ArrayList.java:429)\r\n\tat org.eclipse.jdt.core.dom.ASTNode$NodeList.get(ASTNode.java:1369)\r\n\tat org.autorefactor.refactoring.rules.UseDiamondOperatorRefactoring.canUseDiamondOperator(UseDiamondOperatorRefactoring.java:107)\r\n\tat org.autorefactor.refactoring.rules.UseDiamondOperatorRefactoring.visit(UseDiamondOperatorRefactoring.java:72)\r\n\tat org.autorefactor.refactoring.rules.AggregateASTVisitor.visit(AggregateASTVisitor.java:1911)\r\n```\r\non\r\n```\r\nimport org.assertj.core.api.Condition;\r\nclass t extends Object\r\n{\r\nObject q=new Condition<>($->true,\"\");\r\n}\r\n```"}}
{"actor":{"display_login":"Fabrice-TIERCELIN"}}