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:52:38 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk 131c8cd51 -> fa4240e71


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

Branch: refs/heads/trunk
Commit: fa4240e71e3bd7ff740179f04e894218a1249e3d
Parents: 131c8cd
Author: Vitaly Brodetskyi <vbrodetskyi@hortonworks.com>
Authored: Sat Sep 19 15:52:27 2015 +0300
Committer: Vitaly Brodetskyi <vbrodetskyi@hortonworks.com>
Committed: Sat Sep 19 15:52:27 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/fa4240e7/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