Clover Coverage Report - Checkstyle
Coverage timestamp: Fri May 9 2008 10:48:13 EST
../../../../../../img/srcFileCovDistChart5.png 87% of files have more coverage
2   45   2   1
0   14   1   2
2     1  
1    
 
  AbstractInterfaceCheck       Line # 27 50% 0.5
2.5 2 2 2 1
 
  (4)
 
1    ////////////////////////////////////////////////////////////////////////////////
2    // checkstyle: Checks Java source code for adherence to a set of rules.
3    // Copyright (C) 2001-2005 Oliver Burn
4    //
5    // This library is free software; you can redistribute it and/or
6    // modify it under the terms of the GNU Lesser General Public
7    // License as published by the Free Software Foundation; either
8    // version 2.1 of the License, or (at your option) any later version.
9    //
10    // This library is distributed in the hope that it will be useful,
11    // but WITHOUT ANY WARRANTY; without even the implied warranty of
12    // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13    // Lesser General Public License for more details.
14    //
15    // You should have received a copy of the GNU Lesser General Public
16    // License along with this library; if not, write to the Free Software
17    // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18    ////////////////////////////////////////////////////////////////////////////////
19    package com.puppycrawl.tools.checkstyle.checks.j2ee;
20   
21    import com.puppycrawl.tools.checkstyle.api.TokenTypes;
22   
23    /**
24    * Abstract class for checking interface requirements.
25    * @author Rick Giles
26    */
 
27    public class AbstractInterfaceCheck
28    extends AbstractJ2eeCheck
29    {
30    /**
31    * {@inheritDoc}
32    */
 
33  4 toggle public int[] getDefaultTokens()
34    {
35  4 return new int[] {TokenTypes.INTERFACE_DEF};
36    }
37   
38    /**
39    * {@inheritDoc}
40    */
 
41  0 toggle public int[] getRequiredTokens()
42    {
43  0 return getDefaultTokens();
44    }
45    }