summaryrefslogtreecommitdiff
path: root/nlpsolver
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-12-05 10:53:55 +0200
committerNoel Grandin <noel@peralex.com>2014-12-05 11:15:56 +0200
commitdb203e59d6b54112cbf42923d4f02940b15e3c9f (patch)
treede4dac4b58cbf877fbcf47dbb38a27ac0f4fab4f /nlpsolver
parent4ae96069bbdc243c40e98872fe5090f6bf4880f1 (diff)
java: remove some unused fields
Change-Id: I1b6fb6b47439c448ac31983702772e2115c70d56
Diffstat (limited to 'nlpsolver')
-rw-r--r--nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/global/GlobalString.java35
1 files changed, 15 insertions, 20 deletions
diff --git a/nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/global/GlobalString.java b/nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/global/GlobalString.java
index 975b2eba8331..d7dafebb091a 100644
--- a/nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/global/GlobalString.java
+++ b/nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/global/GlobalString.java
@@ -26,27 +26,22 @@ package net.adaptivebox.global;
import java.util.*;
public class GlobalString {
- private static final String NEGLECT_TAG = "#$@";
-
-/**
- * Tokenize a String with given key.
- * @param input the String to be tokenized.
- * @param tokenKey the delimiters.
- * @return a String array that include the elements of input string that
- * divided by the tokenKey.
- */
- public static String[] tokenize(String input , String tokenKey) {
- ArrayList<String> v = new ArrayList<String>();
- StringTokenizer t = new StringTokenizer(input, tokenKey);
- while (t.hasMoreTokens()) {
- v.add(t.nextToken());
+ /**
+ * Tokenize a String with given key.
+ *
+ * @param input the String to be tokenized.
+ * @param tokenKey the delimiters.
+ * @return a String array that include the elements of input string that
+ * divided by the tokenKey.
+ */
+ public static String[] tokenize(String input, String tokenKey) {
+ ArrayList<String> v = new ArrayList<String>();
+ StringTokenizer t = new StringTokenizer(input, tokenKey);
+ while (t.hasMoreTokens()) {
+ v.add(t.nextToken());
+ }
+ return v.toArray(new String[v.size()]);
}
- return v.toArray(new String[v.size()]);
- }
-
-
-
-
} \ No newline at end of file