From f36fd4bb8a462e9f9cbec8b706bcc5fd3b12a926 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mi=C5=82osz=20Sieradzki?= Date: Fri, 25 Jul 2014 20:02:57 +0200 Subject: [PATCH] Use interface instead of concrete class, add missing @Override --- src/acr/browser/lightning/ReplacingInputStream.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/acr/browser/lightning/ReplacingInputStream.java b/src/acr/browser/lightning/ReplacingInputStream.java index dc7e8e5..4090e09 100644 --- a/src/acr/browser/lightning/ReplacingInputStream.java +++ b/src/acr/browser/lightning/ReplacingInputStream.java @@ -3,14 +3,15 @@ package acr.browser.lightning; import java.io.FilterInputStream; import java.io.IOException; import java.io.InputStream; +import java.util.Deque; import java.util.Iterator; import java.util.LinkedList; public class ReplacingInputStream extends FilterInputStream { - LinkedList inQueue = new LinkedList(); + Deque inQueue = new LinkedList(); - LinkedList outQueue = new LinkedList(); + Deque outQueue = new LinkedList(); final byte[] search, replacement; @@ -70,6 +71,7 @@ public class ReplacingInputStream extends FilterInputStream { /** * Returns false. REFilterInputStream does not support mark() and reset() methods. */ + @Override public boolean markSupported() { return false; } @@ -77,6 +79,7 @@ public class ReplacingInputStream extends FilterInputStream { /** * Reads from the stream into the provided array. */ + @Override public int read(byte[] b, int off, int len) throws IOException { int i; int ok = 0;