Class EmptySwitchEliminator

java.lang.Object
sootup.interceptors.EmptySwitchEliminator
All Implemented Interfaces:
BodyInterceptor

public class EmptySwitchEliminator extends Object implements BodyInterceptor
Removes empty switch statements which always take the default action from a method body, i.e. blocks of the form switch(x) { default: ... }. Such blocks are replaced by the code of the default block.
Author:
Steven Arzt, Zun Wang
  • Constructor Details

    • EmptySwitchEliminator

      public EmptySwitchEliminator()
  • Method Details