diff options
| author | Elliott Hughes <enh@google.com> | 2010-04-09 23:36:48 -0700 |
|---|---|---|
| committer | Elliott Hughes <enh@google.com> | 2010-04-09 23:46:25 -0700 |
| commit | 9a5f6207d2ad95360889dedf26be2b4a92bcbfec (patch) | |
| tree | 8d5ca6968873899a399e353a1301d50e0fbb4676 /vm/compiler/codegen/arm/CodegenDriver.c | |
| parent | 4e110cd8fd30f8fa3e4c765e0da017203b1a2764 (diff) | |
Fix build by turning a comment into a doc comment. Clarify logic.
Now I see what jessewilson was trying to say earlier; rewrite the post-loop
code to say what I guess it was aiming at, which is avoiding an add followed
by a remove in the not completely uncommon case where limit == 0 and the
regular expression is a terminator rather than a true separator ('\n', say).
(Normally the regular expression is a true separator so there will be no
trailing empty string even though limit is 0: "a,b,c".split(","), for example.)
Also, String.isEmpty is our fasest way of recognizing the empty string;
certainly better than equals("").
Change-Id: I82f4ec49fa58efc178e342cf55d4dfbbdad01c75
Diffstat (limited to 'vm/compiler/codegen/arm/CodegenDriver.c')
0 files changed, 0 insertions, 0 deletions
