Skip to content

Commit 61ee15d

Browse files
Apply Nitin's suggestions
1 parent e27b28e commit 61ee15d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

api/src/main/java/org/apache/cloudstack/api/ApiConstants.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ public class ApiConstants {
153153
public static final String ID = "id";
154154
public static final String IDS = "ids";
155155
public static final String ID_PREVIOUS_ACL_RULE = "previousaclruleid";
156-
public static final String ID_NEXT_ACL_RULE = "nextaclruleid";
156+
public static final String NEXT_ACL_RULE_ID = "nextaclruleid";
157157
public static final String INTERNAL_DNS1 = "internaldns1";
158158
public static final String INTERNAL_DNS2 = "internaldns2";
159159
public static final String INTERVAL_TYPE = "intervaltype";

server/src/main/java/com/cloud/network/vpc/NetworkACLServiceImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -970,7 +970,7 @@ public int compare(NetworkACLItemVO o1, NetworkACLItemVO o2) {
970970
}
971971

972972
/**
973-
* Mover an ACL to the space between to other rules. If there is already enough room to accommodate the ACL rule being moved, we simply get the 'number' field from the previous ACL rule and add one, and then define this new value as the 'number' value for the ACL rule being moved.
973+
* Moves an ACL to the space between to other rules. If there is already enough room to accommodate the ACL rule being moved, we simply get the 'number' field from the previous ACL rule and add one, and then define this new value as the 'number' value for the ACL rule being moved.
974974
* Otherwise, we will need to make room. This process is executed via {@link #updateAclRuleToNewPositionAndExecuteShiftIfNecessary(NetworkACLItemVO, int, List, int)}, which will create the space between ACL rules if necessary. This involves shifting ACL rules to accommodate the rule being moved.
975975
*/
976976
protected NetworkACLItem moveRuleBetweenAclRules(NetworkACLItemVO ruleBeingMoved, List<NetworkACLItemVO> allAclRules, NetworkACLItemVO previousRule, NetworkACLItemVO nextRule) {

0 commit comments

Comments
 (0)