]> granicus.if.org Git - icu/commitdiff
ICU-8854 dead store to local variable
authorAbhinav Gupta <mail@abhinavg.net>
Mon, 24 Oct 2011 19:23:59 +0000 (19:23 +0000)
committerAbhinav Gupta <mail@abhinavg.net>
Mon, 24 Oct 2011 19:23:59 +0000 (19:23 +0000)
X-SVN-Rev: 30861

icu4j/main/classes/charset/src/com/ibm/icu/charset/CharsetDecoderICU.java
icu4j/main/classes/charset/src/com/ibm/icu/charset/CharsetEncoderICU.java
icu4j/main/classes/charset/src/com/ibm/icu/charset/CharsetMBCS.java

index c8fc89e43879d3eb4198131b91569bb503ce0e70..2486f2d76d6c1cca45d43da256c6d9dd2549a5f9 100644 (file)
@@ -601,9 +601,6 @@ public abstract class CharsetDecoderICU extends CharsetDecoder{
                                 source.get(preToUArray, preToUBegin, length);
                                 preToULength=(byte)-length;
                             }
-    
-                            source=realSource;
-                            flush=realFlush;
                         }
                         return cr;
                     }
index 3bbb688a33eaef37f30038a89db66960b790d94a..3d53c39a022a10fdebc27cbf19cf861d4f41450b 100644 (file)
@@ -581,8 +581,6 @@ public abstract class CharsetEncoderICU extends CharsetEncoder {
                                 source.get(preFromUArray, 0, length);
                                 preFromULength = (byte) -length;
                             }
-                            source = realSource;
-                            flush = realFlush;
                         }
                         return cr;
                     }
index ddc4ac20c0da8cda0c64dba91f491bd1f3aa84c8..0d384369dfddcb9637e63173c38b598d139c0aa7 100644 (file)
@@ -890,7 +890,7 @@ class CharsetMBCS extends CharsetICU {
                 try {
                     if (!EBCDICSwapLFNL()) {
                         /* this option does not apply, remove it */
-                        this.options = myOptions &= ~UConverterConstants.OPTION_SWAP_LFNL;
+                        this.options = myOptions & ~UConverterConstants.OPTION_SWAP_LFNL;
                     }
                 } catch (Exception e) {
                     /* something went wrong. */