diff options
author | Noel Grandin <noel@peralex.com> | 2014-10-15 16:25:10 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-10-16 08:15:52 +0200 |
commit | fa22664be218c211c41342c6296616c316b2c3b1 (patch) | |
tree | 2118e12dffce57f5027ef4aed227d27acf8c6ed6 /nlpsolver/ThirdParty/EvolutionarySolver/src | |
parent | 94ae3e827b71da5be77ff04522ff156770801b25 (diff) |
java: always use braces for while loops
Change-Id: Iff896b0cace8b8305528b3b0140004ea856169ce
Diffstat (limited to 'nlpsolver/ThirdParty/EvolutionarySolver/src')
-rw-r--r-- | nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/global/GlobalString.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/global/GlobalString.java b/nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/global/GlobalString.java index fc77d0f9a42e..cb33daae9f19 100644 --- a/nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/global/GlobalString.java +++ b/nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/global/GlobalString.java @@ -39,8 +39,9 @@ public class GlobalString { public static String[] tokenize(String input , String tokenKey) { ArrayList<String> v = new ArrayList<String>(); StringTokenizer t = new StringTokenizer(input, tokenKey); - while (t.hasMoreTokens()) + while (t.hasMoreTokens()) { v.add(t.nextToken()); + } return v.toArray(new String[v.size()]); } |