From e5f74536900f0f224fa2e2af1396e9c18d385205 Mon Sep 17 00:00:00 2001 From: YunByungil Date: Thu, 28 Mar 2024 19:25:00 +0900 Subject: [PATCH] fix: variable naming convention Changed the variable name from MAX_INTITEM_LENGTH to MAX_INT_ITEM_LENGTH to adhere to naming conventions --- .../springframework/security/core/ComparableVersion.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/src/main/java/org/springframework/security/core/ComparableVersion.java b/core/src/main/java/org/springframework/security/core/ComparableVersion.java index a7477a4a5b..347644734c 100644 --- a/core/src/main/java/org/springframework/security/core/ComparableVersion.java +++ b/core/src/main/java/org/springframework/security/core/ComparableVersion.java @@ -66,9 +66,9 @@ import java.util.Properties; */ class ComparableVersion implements Comparable { - 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 { 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); }