/** * Sets or removes a property value. * * @param propertyName * the name of the property to set or remove. * @param propertyValue * a new value for the property. If this value is null, the named property * will be removed. */ public void setProperty(String propertyName, String propertyValue) { if (propertyValue == null) { this.clearProperty(propertyName); } else { this.properties.put(propertyName, trim(propertyValue)); } }
/** * Sets or removes a property value. * * @param propertyName * the name of the property to set or remove. * @param propertyValue * a new value for the property. If this value is null, the named property * will be removed. */ public void setProperty(String propertyName, String propertyValue) { if (propertyValue == null) { this.clearProperty(propertyName); } else { this.properties.put(propertyName, trim(propertyValue)); } }