1 package com.puppycrawl.tools.checkstyle.checks.metrics; 20 21 import com.puppycrawl.tools.checkstyle.api.TokenTypes; 22 23 30 public final class ClassDataAbstractionCouplingCheck 31 extends AbstractClassCouplingCheck 32 { 33 34 private static final int DEFAULT_MAX = 7; 35 36 37 public ClassDataAbstractionCouplingCheck() 38 { 39 super(DEFAULT_MAX); 40 setTokens(new String [] {"LITERAL_NEW"}); 41 } 42 43 44 public int[] getRequiredTokens() 45 { 46 return new int[] { 47 TokenTypes.PACKAGE_DEF, 48 TokenTypes.CLASS_DEF, 49 TokenTypes.INTERFACE_DEF, 50 TokenTypes.ENUM_DEF, 51 TokenTypes.LITERAL_NEW, 52 }; 53 } 54 55 56 protected String getLogMessageId() 57 { 58 return "classDataAbstractionCoupling"; 59 } 60 } 61 | Popular Tags |