//method
void foo() {
  // comment
  switch(a) {
    case 1: {
      int x = 1;
      System.out.println(x);
      break;
    }

    case 2: {
      int x = 2;
      System.out.println(x);
    }
    break;

    case 3: {
        System.out.println(3);
    }
  }
}