| // "Merge 'else if' statement" "false" | |
| import java.util.Collection; | |
| import java.util.List; | |
| import java.util.Set; | |
| public class IfStatementWithIdenticalBranches { | |
| int getX() { | |
| return 42; | |
| } | |
| void work() { | |
| if<caret> (true) { | |
| int x = 12; | |
| } else if(false) { | |
| int x = getX(); | |
| } else{ | |
| int y = 13; | |
| } | |
| } | |
| } |