From eaa4eba74df75ff87fb755bc1ba5c982f8c49bee Mon Sep 17 00:00:00 2001 From: Rafael da Fonseca Date: Sun, 14 Jun 2015 21:30:54 +0200 Subject: [PATCH] Fix findbugs RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE in EngineHostVO.java Assert isn't used in prod runtime, null is checked in method Signed-off-by: Daan Hoogland This closes #448 --- .../engine/datacenter/entity/api/db/EngineHostVO.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/engine/orchestration/src/org/apache/cloudstack/engine/datacenter/entity/api/db/EngineHostVO.java b/engine/orchestration/src/org/apache/cloudstack/engine/datacenter/entity/api/db/EngineHostVO.java index b064a35864d..efa34dfec98 100644 --- a/engine/orchestration/src/org/apache/cloudstack/engine/datacenter/entity/api/db/EngineHostVO.java +++ b/engine/orchestration/src/org/apache/cloudstack/engine/datacenter/entity/api/db/EngineHostVO.java @@ -296,8 +296,6 @@ public class EngineHostVO implements EngineHost, Identity { } public String getDetail(String name) { - assert (details != null) : "Did you forget to load the details?"; - return details != null ? details.get(name) : null; }