@ SuppressWarnings ( { "unchecked" , "rawtypes" } ) public static void setProps ( Properties prop ) { properties = prop ; Iterator propIt = properties . entrySet ( ) . iterator ( ) ; while ( propIt . hasNext ( ) ) { Entry < String , String > entry = ( Entry < String , String > ) propIt . next ( ) ; properties . setProperty ( entry . getKey ( ) , entry . getValue ( ) . trim ( ) ) ; } }
Sets properties once