diff options
| author | Robert Schuster <theBohemian@gmx.net> | 2008-09-04 00:06:09 +0000 |
|---|---|---|
| committer | Robert Schuster <theBohemian@gmx.net> | 2008-09-04 00:06:09 +0000 |
| commit | ca05f572c92f614d2cd5fe65775a4d7e23d83de2 (patch) | |
| tree | 369e796f9a18663e5882f9cc2254c2b9148b868a /gnu/java/nio/charset/ByteDecodeLoopHelper.java | |
| parent | 27347dd877974878cedbe6b027235fe2783c5b07 (diff) | |
| download | classpath-ca05f572c92f614d2cd5fe65775a4d7e23d83de2.tar.gz | |
2008-09-04 Robert Schuster <robertschuster@fsfe.org>
* gnu/java/nio/charset/ByteDecodeLoopHelper:
(arrayDecodeLoop): Added new break label, escape to that label.
* gnu/java/nio/charset/ByteEncodeLoopHelper:
(arrayDecodeLoop): Added new break label, escape to that label.
Diffstat (limited to 'gnu/java/nio/charset/ByteDecodeLoopHelper.java')
| -rw-r--r-- | gnu/java/nio/charset/ByteDecodeLoopHelper.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gnu/java/nio/charset/ByteDecodeLoopHelper.java b/gnu/java/nio/charset/ByteDecodeLoopHelper.java index 33dfa0263..a1eb5e206 100644 --- a/gnu/java/nio/charset/ByteDecodeLoopHelper.java +++ b/gnu/java/nio/charset/ByteDecodeLoopHelper.java @@ -119,6 +119,8 @@ public abstract class ByteDecodeLoopHelper int inRemaining = in.remaining(); int outRemaining = out.remaining(); CoderResult result; + + bailOut: if (inRemaining <= outRemaining) { for (int i = 0; i < inRemaining; i++) @@ -129,7 +131,7 @@ public abstract class ByteDecodeLoopHelper { inPos--; result = CoderResult.unmappableForLength(1); - break; + break bailOut; } char c = mapToChar(b); outArray[outPos] = c; @@ -147,7 +149,7 @@ public abstract class ByteDecodeLoopHelper { inPos--; result = CoderResult.unmappableForLength(1); - break; + break bailOut; } char c = mapToChar(b); outArray[outPos] = c; |
