From: Roland Haeder Date: Mon, 31 Aug 2015 07:46:21 +0000 (+0200) Subject: Closed internal TODO, got rid of 'size' as countTokens() can be used instead X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=110e82cc473568f0aa806fe4dfda8aaaa8d5ce4c;p=jcore.git Closed internal TODO, got rid of 'size' as countTokens() can be used instead Signed-off-by:Roland Häder --- diff --git a/src/org/mxchange/jcore/BaseFrameworkSystem.java b/src/org/mxchange/jcore/BaseFrameworkSystem.java index f8becfb..51bd210 100644 --- a/src/org/mxchange/jcore/BaseFrameworkSystem.java +++ b/src/org/mxchange/jcore/BaseFrameworkSystem.java @@ -586,19 +586,18 @@ public class BaseFrameworkSystem implements FrameworkInterface { * * @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