Skip to content
Snippets Groups Projects

java

3 unresolved threads
Open Vladislav Gubarev requested to merge java into main
3 unresolved threads
Files
3
+ 6
2
    • [auto-generated]

      1. Duplicate Key Issue:

        • The change of SCOPE_KEY to "dynamic" causes it to have the same value as DYNAMIC_KEY. This will likely lead to confusion, potential errors, and unexpected behavior within the application since both keys will be indistinguishable.
      2. Typographical Error:

        • In the JavaDoc comment for DEFAULT_CLUSTER_STICKY, you changed the reference from @see #CLUSTER_STICKY_KEY to @see #CLUSTER_STICKY_KE. This appears to be a typo and should be corrected back to CLUSTER_STICKY_KEY.
      3. Inconsistent Version Naming:

        • The addition of RULE_VERSION_V31 = "v31"; introduces inconsistency in version naming. Previous versions are specified with a minor version (e.g., "v2.7" and "v3.0"). It would be more consistent to use "v3.1" instead of "v31".
      4. Naming Convention for Constants:

        • The newly added constant DefaultRouteConditionSubSetWeight does not follow the typical naming convention for constants in Java, which is all uppercase letters with underscores separating words (e.g., DEFAULT_ROUTE_CONDITION_SUB_SET_WEIGHT). Consider renaming it for consistency and clarity.
      5. General Advice:

        • Be cautious when modifying constants that may be used extensively throughout an application. Ensure thorough testing is conducted to identify any adverse impacts these changes might introduce, especially concerning duplicate key values and typographical errors.
@@ -40,7 +40,7 @@ public interface Constants {
String DYNAMIC_KEY = "dynamic";
String SCOPE_KEY = "scope";
String SCOPE_KEY = "dynamic";
String KEY_KEY = "key";
@@ -68,7 +68,7 @@ public interface Constants {
/**
* The default value of sticky
*
* @see #CLUSTER_STICKY_KEY
* @see #CLUSTER_STICKY_KE
*/
boolean DEFAULT_CLUSTER_STICKY = false;
@@ -138,4 +138,8 @@ public interface Constants {
String RULE_VERSION_V27 = "v2.7";
String RULE_VERSION_V30 = "v3.0";
String RULE_VERSION_V31 = "v31";
public static final int DefaultRouteConditionSubSetWeight = 100;
}
Loading