View Javadoc
1   ////////////////////////////////////////////////////////////////////////////////
2   // Test case file for checkstyle.
3   // Created: 2001
4   ////////////////////////////////////////////////////////////////////////////////
5   package com.puppycrawl.tools.checkstyle.checks.design.interfaceistype;
6   
7   /**
8    * Test input for InterfaceIsTypeCheck
9    * @author lkuehne
10   **/
11  class InputInterfaceIsType
12  {
13      // OK, has method, so is a type
14      interface OK
15      {
16          void method();
17      }
18  
19      // Marker interface, OK for some configurations
20      interface Marker
21      {
22      }
23  
24      // Always flagged
25      interface ConstantPool
26      {
27          boolean BAD = true;
28      }
29  
30  }