class EmptySwitchEliminator extends BodyTransformer {

  public EmptySwitchEliminator(Singletons.Global g) {
  }

  public static EmptySwitchEliminator v() {
    return G.v().soot_jimple_toolkits_scalar_EmptySwitchEliminator();
  }

  @Override
  protected void internalTransform(Body b, String phaseName, Map<String, String> options) {<FILL_FUNCTION_BODY>}
}

    final Chain<Unit> units = b.getUnits();
    for (Iterator<Unit> it = units.snapshotIterator(); it.hasNext();) {
      Unit u = it.next();
      if (u instanceof LookupSwitchStmt) {
        LookupSwitchStmt sw = (LookupSwitchStmt) u;
        if (sw.getTargetCount() == 0) {
          Unit defaultTarget = sw.getDefaultTarget();
          if (defaultTarget != null) {
            units.swapWith(sw, Jimple.v().newGotoStmt(defaultTarget));
          }
        }
      }
    }
  
<methods>public non-sealed void <init>() ,public final void transform(soot.Body, java.lang.String, Map<java.lang.String,java.lang.String>) ,public final void transform(soot.Body, java.lang.String) ,public final void transform(soot.Body) <variables>private static final Map<java.lang.String,java.lang.String> enabledOnlyMap