cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject git commit: updated refs/heads/4.3-forward to f3529a1
Date Sat, 25 Jan 2014 22:46:24 GMT
Updated Branches:
  refs/heads/4.3-forward 43ba36f97 -> f3529a19a


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/f3529a19
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/f3529a19
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/f3529a19

Branch: refs/heads/4.3-forward
Commit: f3529a19a9aad36dbd92e311018643629f19c748
Parents: 43ba36f
Author: Daan Hoogland <daan@onecht.net>
Authored: Sat Jan 25 23:46:18 2014 +0100
Committer: Daan Hoogland <daan@onecht.net>
Committed: Sat Jan 25 23:46:18 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/f3529a19/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()));
                     }
                 }


Mime
View raw message