Skip to content

Commit d44ca46

Browse files
committed
small fix
1 parent 0dc177c commit d44ca46

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/main/java/com/cloud/configuration/ConfigurationManagerImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1173,7 +1173,7 @@ private String validateConfigurationValue(final String name, String value, final
11731173
if (type.equals(Integer.class) && NetworkModel.MACIdentifier.key().equalsIgnoreCase(name)) {
11741174
try {
11751175
final int val = Integer.parseInt(value);
1176-
//The value needs to be between 0 to 255 because the mac generation needs a value of 8 bit
1176+
//The value need to be between 0 to 255 because the mac generation needs a value of 8 bit
11771177
//0 value is considered as disable.
11781178
if(val < 0 || val > 255){
11791179
throw new InvalidParameterValueException(String.format("[%s] value should be between 0 and 255. 0 value will disable this feature.", name));
@@ -1262,7 +1262,7 @@ protected String validateIfIntValueIsInRange(String name, String value, String r
12621262

12631263

12641264
private String validateIfStringValueIsInRange(String name, String value, String... range) {
1265-
List<String> message = new ArrayList<String>();
1265+
List<String> message = new ArrayList<>();
12661266
String errMessage = "";
12671267
for (String rangeOption : range) {
12681268
switch (rangeOption) {

0 commit comments

Comments
 (0)