KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > puppycrawl > tools > checkstyle > InputIllegalTokens


1 package com.puppycrawl.tools.checkstyle;
2
3 /**
4  * Test for illegal tokens
5  */

6 public class InputIllegalTokens
7 {
8     public void defaultMethod()
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 JavaDoc ref = "<a HREF=\"";
25         final String JavaDoc refCase = "<A hReF=\"";
26     }
27 }
28
Popular Tags