HADOOP-10208. Merge change r1556602 from trunk.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1556604 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jing Zhao 2014-01-08 18:43:14 +00:00
parent 72d69856d5
commit d1bf9f268e
2 changed files with 3 additions and 1 deletions

View File

@ -115,6 +115,9 @@ Release 2.4.0 - UNRELEASED
HADOOP-10198. DomainSocket: add support for socketpair. HADOOP-10198. DomainSocket: add support for socketpair.
(Colin Patrick McCabe via wang) (Colin Patrick McCabe via wang)
HADOOP-10208. Remove duplicate initialization in StringUtils.getStringCollection.
(Benoy Antony via jing9)
OPTIMIZATIONS OPTIMIZATIONS
HADOOP-9748. Reduce blocking on UGI.ensureInitialized (daryn) HADOOP-9748. Reduce blocking on UGI.ensureInitialized (daryn)

View File

@ -343,7 +343,6 @@ public class StringUtils {
if (str == null) if (str == null)
return values; return values;
StringTokenizer tokenizer = new StringTokenizer(str, delim); StringTokenizer tokenizer = new StringTokenizer(str, delim);
values = new ArrayList<String>();
while (tokenizer.hasMoreTokens()) { while (tokenizer.hasMoreTokens()) {
values.add(tokenizer.nextToken()); values.add(tokenizer.nextToken());
} }