From 60e8d131cf27834f4cbbcbccf0174a273cd570c3 Mon Sep 17 00:00:00 2001 From: Daan Hoogland Date: Tue, 28 Jan 2014 14:14:47 +0100 Subject: [PATCH] findbugs: moved call on static object to synchronized block(cherry picked from commit f3529a19a9aad36dbd92e311018643629f19c748) --- server/src/com/cloud/api/ApiDispatcher.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/com/cloud/api/ApiDispatcher.java b/server/src/com/cloud/api/ApiDispatcher.java index 9f4f766fc45..55ef53ae2b9 100755 --- a/server/src/com/cloud/api/ApiDispatcher.java +++ b/server/src/com/cloud/api/ApiDispatcher.java @@ -427,8 +427,8 @@ public class ApiDispatcher { } } else { DateFormat format = BaseCmd.INPUT_FORMAT; - format.setLenient(false); synchronized (format) { + format.setLenient(false); field.set(cmdObj, format.parse(paramObj.toString())); } }