moved call on static object to synchronized block

This commit is contained in:
Daan Hoogland 2014-01-25 23:46:18 +01:00 committed by Daan Hoogland
parent 5296c12d2a
commit 30b7fa5919
1 changed files with 2 additions and 2 deletions

View File

@ -429,9 +429,9 @@ public class ApiDispatcher {
}
}
} else {
DateFormat format = BaseCmd.INPUT_FORMAT;
format.setLenient(false);
final DateFormat format = BaseCmd.INPUT_FORMAT;
synchronized (format) {
format.setLenient(false);
field.set(cmdObj, format.parse(paramObj.toString()));
}
}