From a6fca9587905f455c4b0306b02d77334a295305e Mon Sep 17 00:00:00 2001 From: Abhishek Koneru Date: Fri, 18 May 2012 11:44:45 -0400 Subject: Fixes for Coverity Defects of Category : FB.BC_VACUOUS_INSTANCEOF --- base/common/src/com/netscape/cmscore/base/SimpleProperties.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'base/common/src/com/netscape/cmscore/base') diff --git a/base/common/src/com/netscape/cmscore/base/SimpleProperties.java b/base/common/src/com/netscape/cmscore/base/SimpleProperties.java index f8a5cf4d0..fb399e0c6 100644 --- a/base/common/src/com/netscape/cmscore/base/SimpleProperties.java +++ b/base/common/src/com/netscape/cmscore/base/SimpleProperties.java @@ -348,9 +348,8 @@ public class SimpleProperties extends Hashtable { */ public String getProperty(String key) { String oval = super.get(key); - String sval = (oval instanceof String) ? oval : null; - return ((sval == null) && (defaults != null)) ? defaults.getProperty(key) : sval; + return ((oval == null) && (defaults != null)) ? defaults.getProperty(key) : oval; } /** -- cgit