incubator-cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhais...@apache.org
Subject [18/50] [abbrv] git commit: server: Cosmetic fix for methodname in ApiDispatcher
Date Wed, 09 Jan 2013 04:37:25 GMT
server: Cosmetic fix for methodname in ApiDispatcher

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>


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

Branch: refs/heads/master
Commit: b00ed17f4bf229f0169ef3d99a696f01cc74748c
Parents: 63481ec
Author: Rohit Yadav <bhaisaab@apache.org>
Authored: Sat Jan 5 16:40:59 2013 -0800
Committer: Rohit Yadav <bhaisaab@apache.org>
Committed: Sat Jan 5 16:40:59 2013 -0800

----------------------------------------------------------------------
 server/src/com/cloud/api/ApiDispatcher.java |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/b00ed17f/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 9ae048e..251aab9 100755
--- a/server/src/com/cloud/api/ApiDispatcher.java
+++ b/server/src/com/cloud/api/ApiDispatcher.java
@@ -619,9 +619,9 @@ public class ApiDispatcher {
                         synchronized (format) {
                             Date date = format.parse(paramObj.toString());
                             if (field.getName().equals("startDate")) {
-                                date = massageDate(date, 0, 0, 0);
+                                date = messageDate(date, 0, 0, 0);
                             } else if (field.getName().equals("endDate")) {
-                                date = massageDate(date, 23, 59, 59);
+                                date = messageDate(date, 23, 59, 59);
                             }
                             field.set(cmdObj, date);
                         }
@@ -717,7 +717,7 @@ public class ApiDispatcher {
         return matcher.matches();
     }
 
-    private static Date massageDate(Date date, int hourOfDay, int minute, int second) {
+    private static Date messageDate(Date date, int hourOfDay, int minute, int second) {
         Calendar cal = Calendar.getInstance();
         cal.setTime(date);
         cal.set(Calendar.HOUR_OF_DAY, hourOfDay);


Mime
View raw message