View Javadoc
1   package com.puppycrawl.tools.checkstyle.grammars;
2   
3   /**
4    * Input for Java 7 String in Switch.
5    */
6   public class InputJava7StringSwitch
7   {
8       public static void main(String[] args) {
9           String mystr = "value" + "2";
10  
11          switch (mystr) {
12              case "value1":
13                  break;
14              case "value2":
15                  break;
16              default:
17                  break;
18          }
19      }
20  }