You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by da...@apache.org on 2014/01/29 21:59:34 UTC

[03/11] git commit: updated refs/heads/4.3 to d6bbfbb

moved call on static object to synchronized block

Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/30b7fa59
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/30b7fa59
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/30b7fa59

Branch: refs/heads/4.3
Commit: 30b7fa59198b817c7ac04ec7075d5192080f8a67
Parents: 5296c12
Author: Daan Hoogland <da...@onecht.net>
Authored: Sat Jan 25 23:46:18 2014 +0100
Committer: Daan Hoogland <dh...@schubergphilis.com>
Committed: Wed Jan 29 21:28:25 2014 +0100

----------------------------------------------------------------------
 server/src/com/cloud/api/ApiDispatcher.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/30b7fa59/server/src/com/cloud/api/ApiDispatcher.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/api/ApiDispatcher.java b/server/src/com/cloud/api/ApiDispatcher.java
index 44fb676..9624c61 100755
--- a/server/src/com/cloud/api/ApiDispatcher.java
+++ b/server/src/com/cloud/api/ApiDispatcher.java
@@ -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()));
                     }
                 }