Add JiveGlobals getDoubleProperty

Description

Add to JiveGlobals:

/** * Returns a double value Jive property. If the specified property doesn't exist, the * <tt>defaultValue</tt> will be returned. * * @param name the name of the property to return. * @param defaultValue value returned if the property doesn't exist or was not * a number. * @return the property value specified by name or <tt>defaultValue</tt>. */ public static double getDoubleProperty(String name, double defaultValue) { String value = getProperty(name); if (value != null) { try { return Double.parseDouble(value); } catch (NumberFormatException nfe) { // Ignore. } } return defaultValue; }

Also add these to SystemProperty.java

Environment

None

Activity

Show:
Fixed

Details

Assignee

Reporter

Components

Fix versions

Priority

Created October 28, 2019 at 5:06 PM
Updated October 30, 2019 at 5:06 PM
Resolved October 30, 2019 at 5:06 PM

Flag notifications