code: /*
  LeftCurly
  option = (default)EOL
  ignoreEnums = (default)true
  tokens = (default)ANNOTATION_DEF, CLASS_DEF, CTOR_DEF, ENUM_CONSTANT_DEF, \
           ENUM_DEF, INTERFACE_DEF, LAMBDA, LITERAL_CASE, LITERAL_CATCH, \
           LITERAL_DEFAULT, LITERAL_DO, LITERAL_ELSE, LITERAL_FINALLY, LITERAL_FOR, \
           LITERAL_IF, LITERAL_SWITCH, LITERAL_SYNCHRONIZED, LITERAL_TRY, LITERAL_WHILE, \
           METHOD_DEF, OBJBLOCK, STATIC_INIT, RECORD_DEF, COMPACT_CTOR_DEF
  
  
  */
  
  package com.puppycrawl.tools.checkstyle.checks.blocks.leftcurly;
  
  public class InputLeftCurlyTestEolSwitch {
  
      public void doStuff() {
          int x = 1;
          switch (x) {
              case 0:
              { // violation ''{' at column 13 should be on the previous line'
                  break;
              }
              case (1+0):
              { // violation ''{' at column 13 should be on the previous line'
                  break;
              }
              case 2: {
                  break;
              }
              default:
              { // violation ''{' at column 13 should be on the previous line'
                  break;
              }
              case 3:
              case 4:
                  x++;
                  { // OK, standalone block
                  }
                  break;
              case 5: {
                  }
                  break;
              case (5
                  +1):
              { // violation ''{' at column 13 should be on the previous line'
                  break;
              }
              case 7
                  :
              { // violation ''{' at column 13 should be on the previous line'
                  break;
              }
          }
          switch (x) {
              case 0: {
                  break;
              }
              default:
                  // do nothing
          }
      }
  
      public @interface SomeAnnotation {
  
          String value() default "";
  
      }
  
      public interface SomeInterface {
  
          default String method() {
              return null;
          }
      }
  
  }
  