Mercurial > hg > truffle
comparison graal/com.oracle.max.base/src/com/sun/max/lang/Strings.java @ 4142:bc8527f3071c
Adjust code base to new level of warnings.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Sun, 18 Dec 2011 05:24:06 +0100 |
parents | e233f5660da4 |
children |
comparison
equal
deleted
inserted
replaced
4141:04d21be7a24f | 4142:bc8527f3071c |
---|---|
174 * The given command line is tokenized around {@link Character#isWhitespace(char) whitespaces} | 174 * The given command line is tokenized around {@link Character#isWhitespace(char) whitespaces} |
175 * except for sequences of characters enclosed in non-escaped double quotes (after the double | 175 * except for sequences of characters enclosed in non-escaped double quotes (after the double |
176 * quotes are removed). | 176 * quotes are removed). |
177 */ | 177 */ |
178 public static String[] splitCommand(String command) { | 178 public static String[] splitCommand(String command) { |
179 final List<String> parts = new ArrayList<String>(); | 179 final List<String> parts = new ArrayList<>(); |
180 | 180 |
181 boolean escapedChar = false; | 181 boolean escapedChar = false; |
182 boolean insideQuotes = false; | 182 boolean insideQuotes = false; |
183 | 183 |
184 final char[] buffer = new char[command.length()]; | 184 final char[] buffer = new char[command.length()]; |