fix: variable naming convention
Changed the variable name from MAX_INTITEM_LENGTH to MAX_INT_ITEM_LENGTH to adhere to naming conventions
This commit is contained in:
parent
8f8773212b
commit
e5f7453690
|
|
@ -66,9 +66,9 @@ import java.util.Properties;
|
||||||
*/
|
*/
|
||||||
class ComparableVersion implements Comparable<ComparableVersion> {
|
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;
|
private String value;
|
||||||
|
|
||||||
|
|
@ -559,11 +559,11 @@ class ComparableVersion implements Comparable<ComparableVersion> {
|
||||||
private static Item parseItem(boolean isDigit, String buf) {
|
private static Item parseItem(boolean isDigit, String buf) {
|
||||||
if (isDigit) {
|
if (isDigit) {
|
||||||
buf = stripLeadingZeroes(buf);
|
buf = stripLeadingZeroes(buf);
|
||||||
if (buf.length() <= MAX_INTITEM_LENGTH) {
|
if (buf.length() <= MAX_INT_ITEM_LENGTH) {
|
||||||
// lower than 2^31
|
// lower than 2^31
|
||||||
return new IntItem(buf);
|
return new IntItem(buf);
|
||||||
}
|
}
|
||||||
else if (buf.length() <= MAX_LONGITEM_LENGTH) {
|
else if (buf.length() <= MAX_LONG_ITEM_LENGTH) {
|
||||||
// lower than 2^63
|
// lower than 2^63
|
||||||
return new LongItem(buf);
|
return new LongItem(buf);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue