base/common/src/main/com/thesett/common/util/PropertiesHelper.java
public static Properties trim(Properties properties)
    {
        Properties trimmedProperties = new Properties();

        // Loop over all the properties
        for (Object o : properties.keySet())
        {
            String next = (String) o;
            String nextValue = properties.getProperty(next);

            // Trim the value if it is not null
            if (nextValue != null)
            {
                nextValue.trim();
            }

            // Store the trimmed value in the trimmed properties
            trimmedProperties.setProperty(next, nextValue);
        }

        return trimmedProperties;
    }
public static Properties trim(Properties properties)
    {
        Properties trimmedProperties = new Properties();

        // Loop over all the properties
        for (Object o : properties.keySet())
        {
            String next = (String) o;
            String nextValue = properties.getProperty(next);

            // Trim the value if it is not null
            if (nextValue != null)
            {
                nextValue.trim();
            }

            // Store the trimmed value in the trimmed properties
            trimmedProperties.setProperty(next, nextValue);
        }

        return trimmedProperties;
    }
public static Properties trim ( Properties properties ) { Properties trimmedProperties = new Properties ( ) ; // Loop over all the properties for ( Object o : properties . keySet ( ) ) { String next = ( String ) o ; String nextValue = properties . getProperty ( next ) ; // Trim the value if it is not null if ( nextValue != null ) { nextValue . trim ( ) ; } // Store the trimmed value in the trimmed properties trimmedProperties . setProperty ( next , nextValue ) ; } return trimmedProperties ; }
Trims whitespace from property values. This method returns a new set of properties the same as the properties
specified as an argument but with any white space removed by the {@link java.lang.String#trim} method.

@param  properties The properties to trim whitespace from.

@return The white space trimmed properties.
Trims whitespace from property values . This method returns a new set of properties the same as the properties specified as an argument but with any white space removed by the { @link java . lang . String#trim } method .