@ SuppressWarnings ( "unused" ) private List < String > loadListProperty ( String propertyKey ) { String arrayPropValue = prop . getProperty ( propertyKey ) ; if ( arrayPropValue != null && ! arrayPropValue . isEmpty ( ) ) { String [ ] values = arrayPropValue . trim ( ) . split ( "," ) ; for ( int i = 0 ; i < values . length ; i ++ ) { values [ i ] = values [ i ] . trim ( ) ; } return Arrays . asList ( values ) ; } else { return null ; } }
Loads a property of the type List from the Properties object