This rule is defined by the following XPath expression:
//SwitchStatement[count(*) = 1]
Example:
public class Foo { public void bar() { int x = 2; switch (x) { // once there was code here // but it's been commented out or something } } }