Ver código fonte

fix: variable naming convention

Changed the variable name from MAX_INTITEM_LENGTH to MAX_INT_ITEM_LENGTH to adhere to naming conventions
YunByungil 1 ano atrás
pai
commit
e5f7453690

+ 4 - 4
core/src/main/java/org/springframework/security/core/ComparableVersion.java

@@ -66,9 +66,9 @@ import java.util.Properties;
  */
 class ComparableVersion implements Comparable<ComparableVersion> {
 
-	private static final int MAX_INTITEM_LENGTH = 9;
+	private static final int MAX_INT_ITEM_LENGTH = 9;
 
-	private static final int MAX_LONGITEM_LENGTH = 18;
+	private static final int MAX_LONG_ITEM_LENGTH = 18;
 
 	private String value;
 
@@ -559,11 +559,11 @@ class ComparableVersion implements Comparable<ComparableVersion> {
 	private static Item parseItem(boolean isDigit, String buf) {
 		if (isDigit) {
 			buf = stripLeadingZeroes(buf);
-			if (buf.length() <= MAX_INTITEM_LENGTH) {
+			if (buf.length() <= MAX_INT_ITEM_LENGTH) {
 				// lower than 2^31
 				return new IntItem(buf);
 			}
-			else if (buf.length() <= MAX_LONGITEM_LENGTH) {
+			else if (buf.length() <= MAX_LONG_ITEM_LENGTH) {
 				// lower than 2^63
 				return new LongItem(buf);
 			}