ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vbrodets...@apache.org
Subject ambari git commit: AMBARI-13159. On older jdk versions getting compile error Object cast to boolen error.(vbrodetskyi)
Date Sat, 19 Sep 2015 12:50:47 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.1 69c7579e3 -> 9dcb90e00


AMBARI-13159. On older jdk versions getting compile error Object cast to boolen error.(vbrodetskyi)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/9dcb90e0
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/9dcb90e0
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/9dcb90e0

Branch: refs/heads/branch-2.1
Commit: 9dcb90e005d1e353793f66f01e03484277410fe2
Parents: 69c7579
Author: Vitaly Brodetskyi <vbrodetskyi@hortonworks.com>
Authored: Sat Sep 19 15:50:29 2015 +0300
Committer: Vitaly Brodetskyi <vbrodetskyi@hortonworks.com>
Committed: Sat Sep 19 15:50:29 2015 +0300

----------------------------------------------------------------------
 .../src/main/java/org/apache/ambari/server/orm/dao/AlertsDAO.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/9dcb90e0/ambari-server/src/main/java/org/apache/ambari/server/orm/dao/AlertsDAO.java
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/java/org/apache/ambari/server/orm/dao/AlertsDAO.java b/ambari-server/src/main/java/org/apache/ambari/server/orm/dao/AlertsDAO.java
index 4a5c5b0..39b12c4 100644
--- a/ambari-server/src/main/java/org/apache/ambari/server/orm/dao/AlertsDAO.java
+++ b/ambari-server/src/main/java/org/apache/ambari/server/orm/dao/AlertsDAO.java
@@ -521,7 +521,7 @@ public class AlertsDAO {
 
       int integerValue;
       if (hostStateValue instanceof Boolean) {
-        integerValue = (boolean)hostStateValue ? 1 : 0;
+        integerValue = ((Boolean)hostStateValue).booleanValue() ? 1 : 0;
       } else {
         integerValue = ((Number)hostStateValue).intValue();
       }


Mime
View raw message