Redefine constant in class (NumberConstants ObjectConstants...)

This commit is contained in:
骏烈
2017-10-18 14:52:03 +08:00
parent e7e6fcc850
commit 6ab9ac35be
12 changed files with 86 additions and 44 deletions

View File

@@ -19,13 +19,18 @@ package com.alibaba.p3c.pmd.lang.java.util;
* @author caikang
* @date 2016/12/28
*/
public interface NumberConstants {
int INTEGER_SIZE_OR_LENGTH_0 = 0;
int INTEGER_SIZE_OR_LENGTH_1 = 1;
int INTEGER_SIZE_OR_LENGTH_2 = 2;
int INTEGER_SIZE_OR_LENGTH_3 = 3;
public final class NumberConstants {
private NumberConstants() {
throw new AssertionError("com.alibaba.p3c.pmd.lang.java.util.NumberConstants"
+ " instances for you!");
}
int INDEX_0 = 0;
int INDEX_1 = 1;
int INDEX_2 = 2;
public static final int INTEGER_SIZE_OR_LENGTH_0 = 0;
public static final int INTEGER_SIZE_OR_LENGTH_1 = 1;
public static final int INTEGER_SIZE_OR_LENGTH_2 = 2;
public static final int INTEGER_SIZE_OR_LENGTH_3 = 3;
public static final int INDEX_0 = 0;
public static final int INDEX_1 = 1;
public static final int INDEX_2 = 2;
}

View File

@@ -19,6 +19,11 @@ package com.alibaba.p3c.pmd.lang.java.util;
* @author caikang
* @date 2017/03/28
*/
public interface StringAndCharConstants {
char DOT = '.';
public final class StringAndCharConstants {
private StringAndCharConstants(){
throw new AssertionError("com.alibaba.p3c.pmd.lang.java.util.StringAndCharConstants"
+ " instances for you!");
}
public static final char DOT = '.';
}