summaryrefslogtreecommitdiffstats
path: root/core/java
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2015-01-09 19:13:58 +0000
committerandroid-build-merger <android-build-merger@google.com>2015-01-09 19:13:58 +0000
commit2abf1f1c212574ea7073584406ee86898f5d3779 (patch)
treeb08a8245a0f1de3bdb7a291c6ef2df9596e210a6 /core/java
parent4a207e3e52044839b035c2a0af9c240d31692422 (diff)
parenta319aa800df36d40e1de453b64fd1e14573e6d80 (diff)
downloadframeworks_base-2abf1f1c212574ea7073584406ee86898f5d3779.zip
frameworks_base-2abf1f1c212574ea7073584406ee86898f5d3779.tar.gz
frameworks_base-2abf1f1c212574ea7073584406ee86898f5d3779.tar.bz2
Merge "Fix issue #18942959: Phone getting stuck then restarts after unplugging from Audi" into lmp-mr1-dev automerge: 54f9b1e
automerge: a319aa8 * commit 'a319aa800df36d40e1de453b64fd1e14573e6d80': 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.java8
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");
}