brooklyn-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aleds...@apache.org
Subject [2/3] incubator-brooklyn git commit: Fix compilation error in o.a.b.util.time.Time
Date Wed, 16 Sep 2015 12:36:31 GMT
Fix compilation error in o.a.b.util.time.Time

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

Branch: refs/heads/master
Commit: d48b6e72de7e26f2f252fa048406f4501e4d8643
Parents: 323c7d5
Author: Aled Sage <aled.sage@gmail.com>
Authored: Wed Sep 16 13:33:10 2015 +0100
Committer: Aled Sage <aled.sage@gmail.com>
Committed: Wed Sep 16 13:33:10 2015 +0100

----------------------------------------------------------------------
 utils/common/src/main/java/org/apache/brooklyn/util/time/Time.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/blob/d48b6e72/utils/common/src/main/java/org/apache/brooklyn/util/time/Time.java
----------------------------------------------------------------------
diff --git a/utils/common/src/main/java/org/apache/brooklyn/util/time/Time.java b/utils/common/src/main/java/org/apache/brooklyn/util/time/Time.java
index 25bd9de..89c62ad 100644
--- a/utils/common/src/main/java/org/apache/brooklyn/util/time/Time.java
+++ b/utils/common/src/main/java/org/apache/brooklyn/util/time/Time.java
@@ -503,7 +503,7 @@ public class Time {
                 }
                 return d*multiplier + dd;
             } catch (Exception ex) {
-                if (ex instanceof NumberFormatException) throw ex;
+                if (ex instanceof NumberFormatException) throw (NumberFormatException)ex;
                 log.trace("Details of parse failure:", ex);
                 throw new NumberFormatException("Cannot parse time string '"+timeStringOrig+"'");
             }


Mime
View raw message