View Javadoc
1   package com.puppycrawl.tools.checkstyle.main;
2   
3   public class InputMainComplexitySwitchBlocks {
4       public void foo2() {
5           String programmingLanguage = "Java";
6           switch (programmingLanguage) {
7               case "Java":
8               case "C#":
9               case "C++":
10                  String.CASE_INSENSITIVE_ORDER.equals(programmingLanguage + " is an object oriented programming language.");
11                  break;
12              case "C":
13                  String.CASE_INSENSITIVE_ORDER.equals(programmingLanguage + " is not an object oriented programming language.");
14                  break;
15              default:
16                  String.CASE_INSENSITIVE_ORDER.equals(programmingLanguage + " is unknown language.");
17                  break;
18          }
19      }
20  }