Bug 572790 - [AutoRefactor #74/153] 1 if rather than duplicate

Merge consecutive if statements with same code block that end with a
jump statement:

Given:
        if (i1 == 0) {
            System.out.println("The same code");
            return;
        }
        if (i1 == 1) {
            System.out.println("The same code");
            return;
        }
        System.out.println("Next code");

When:
Applying "One if rather than duplicate blocks that fall through" clean
up...

Then:
        if ((i1 == 0) || (i1 == 1)) {
            System.out.println("The same code");
            return;
        }
        System.out.println("Next code");

Change-Id: I42fa0c8c62e83f5d2f9c237601e377cd23b3e1c0
Signed-off-by: Fabrice Tiercelin <fabrice.tiercelin@yahoo.fr>
Depends-On: I94d94c3f1bb101f74a10d320baff0ae3a938a4d6
4 files changed