Skip to content

Commit 30b7fa5

Browse files
DaanHooglandDaan Hoogland
authored andcommitted
moved call on static object to synchronized block
1 parent 5296c12 commit 30b7fa5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎server/src/com/cloud/api/ApiDispatcher.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -429,9 +429,9 @@ private static void setFieldValue(Field field, BaseCmd cmdObj, Object paramObj,
429429
}
430430
}
431431
} else {
432-
DateFormat format = BaseCmd.INPUT_FORMAT;
433-
format.setLenient(false);
432+
final DateFormat format = BaseCmd.INPUT_FORMAT;
434433
synchronized (format) {
434+
format.setLenient(false);
435435
field.set(cmdObj, format.parse(paramObj.toString()));
436436
}
437437
}

0 commit comments

Comments
 (0)