public class B { void foo(A i) { switch (i) { case ONE : break; } } } class Usage { void foo(A i) { switch (i) { case ONE : break; } } }