*
* @param str String to tokenize and get array from
* @param delimiter Delimiter
- * @param size Size of array
* @return Array from tokenized string
* TODO Get rid of size parameter
*/
- protected String[] getArrayFromString (final String str, final String delimiter, final int size) {
+ protected String[] getArrayFromString (final String str, final String delimiter) {
// Trace message
- this.getLogger().trace(MessageFormat.format("str={0},delimiter={1},size={2} - CALLED!", str, delimiter, size)); //NOI18N
+ this.getLogger().trace(MessageFormat.format("str={0},delimiter={1} - CALLED!", str, delimiter)); //NOI18N
// Get tokenizer
StringTokenizer tokenizer = new StringTokenizer(str, delimiter);
// Init array and index
- String[] tokens = new String[size];
+ String[] tokens = new String[tokenizer.countTokens()];
int index = 0;
// Run through all tokens