Tofpu / SpeedBridge2

switch statements with only 2 branches should be if statements instead JAVA-W1086
Anti-pattern
Major
9 months ago9 months old
 92            }
 93
 94            final String name;
 95            switch (parameter.getType().getSimpleName()) { 96                case "Island":
 97                    name = "slot";
 98                    break;