diff options
author | Dianne Hackborn <hackbod@google.com> | 2015-01-09 19:21:25 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-01-09 19:21:25 +0000 |
commit | 1ed82edf1df1b1e86929669c4b9e2cac4a6f9283 (patch) | |
tree | 3fb5156fabe02912cb89dd80a02f2c8b749d5a4c /core/java | |
parent | 0e5f8a45f7c20f10541b9ec910b9dacfb4d98c3c (diff) | |
parent | 2abf1f1c212574ea7073584406ee86898f5d3779 (diff) | |
download | frameworks_base-1ed82edf1df1b1e86929669c4b9e2cac4a6f9283.zip frameworks_base-1ed82edf1df1b1e86929669c4b9e2cac4a6f9283.tar.gz frameworks_base-1ed82edf1df1b1e86929669c4b9e2cac4a6f9283.tar.bz2 |
am 2abf1f1c: Merge "Fix issue #18942959: Phone getting stuck then restarts after unplugging from Audi" into lmp-mr1-dev automerge: 54f9b1e automerge: a319aa8
* commit '2abf1f1c212574ea7073584406ee86898f5d3779':
Fix issue #18942959: Phone getting stuck then restarts after unplugging from Audi
Diffstat (limited to 'core/java')
-rw-r--r-- | core/java/com/android/internal/util/FastPrintWriter.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/java/com/android/internal/util/FastPrintWriter.java b/core/java/com/android/internal/util/FastPrintWriter.java index c70a243..c74fea0 100644 --- a/core/java/com/android/internal/util/FastPrintWriter.java +++ b/core/java/com/android/internal/util/FastPrintWriter.java @@ -15,7 +15,7 @@ import java.nio.charset.CoderResult; import java.nio.charset.CodingErrorAction; public class FastPrintWriter extends PrintWriter { - private static Writer sDummyWriter = new Writer() { + private static class DummyWriter extends Writer { @Override public void close() throws IOException { UnsupportedOperationException ex @@ -100,7 +100,7 @@ public class FastPrintWriter extends PrintWriter { * if {@code out} is {@code null}. */ public FastPrintWriter(OutputStream out, boolean autoFlush, int bufferLen) { - super(sDummyWriter, autoFlush); + super(new DummyWriter(), autoFlush); if (out == null) { throw new NullPointerException("out is null"); } @@ -169,7 +169,7 @@ public class FastPrintWriter extends PrintWriter { * if {@code wr} is {@code null}. */ public FastPrintWriter(Writer wr, boolean autoFlush, int bufferLen) { - super(sDummyWriter, autoFlush); + super(new DummyWriter(), autoFlush); if (wr == null) { throw new NullPointerException("wr is null"); } @@ -212,7 +212,7 @@ public class FastPrintWriter extends PrintWriter { * if {@code pr} is {@code null}. */ public FastPrintWriter(Printer pr, int bufferLen) { - super(sDummyWriter, true); + super(new DummyWriter(), true); if (pr == null) { throw new NullPointerException("pr is null"); } |