mirror of
https://github.com/alibaba/p3c.git
synced 2025-10-14 15:10:54 +00:00
Redefine constant in class (NumberConstants ObjectConstants...)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
@@ -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 = '.';
|
||||
}
|
||||
|
Reference in New Issue
Block a user