View Javadoc
1   package com.puppycrawl.tools.checkstyle.checks.coding.illegaltokentext;
2   
3   /**
4    * Test for illegal tokens
5    */
6   public class InputIllegalTokenTextTokens
7   {
8       public void methodWithPreviouslyIllegalTokens()
9       {
10          int i = 0;
11          switch (i)
12          {
13              default:
14                  i--;
15                  i++;
16                  break;
17          }
18      }
19      
20      public native void nativeMethod();
21      
22      public void methodWithLiterals()
23      {
24          final String ref = "<a href=\"";
25          final String refCase = "<A hReF=\"";
26      }
27  
28      public void methodWithLabels() {
29          label:
30          {
31              anotherLabel: // some comment href
32              do {
33                  continue anotherLabel;
34              } while (false);
35              break label; // some a href
36          }
37      }
38  }