From 110e82cc473568f0aa806fe4dfda8aaaa8d5ce4c Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Mon, 31 Aug 2015 09:46:21 +0200 Subject: [PATCH] =?utf8?q?Closed=20internal=20TODO,=20got=20rid=20of=20'si?= =?utf8?q?ze'=20as=20countTokens()=20can=20be=20used=20instead=20Signed-of?= =?utf8?q?f-by:Roland=20H=C3=A4der=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/org/mxchange/jcore/BaseFrameworkSystem.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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 -- 2.39.5