summaryrefslogtreecommitdiffstats
path: root/vespajlib
diff options
context:
space:
mode:
authorArne H Juul <arnej@yahoo-inc.com>2017-05-30 08:50:47 +0200
committerArne H Juul <arnej@yahoo-inc.com>2017-05-30 08:50:47 +0200
commit52bf2c5ecde5dfc97f9773a2240285062ddfa59f (patch)
treeb654aeb22d2426ec2026fd68047f6e078d12b3af /vespajlib
parent98a59a3bc5dd2136f416417cf329678fd7c71051 (diff)
move override annotation
Diffstat (limited to 'vespajlib')
-rw-r--r--vespajlib/src/main/java/com/yahoo/io/TeeInputStream.java15
-rw-r--r--vespajlib/src/test/java/com/yahoo/io/TeeInputStreamTest.java3
2 files changed, 12 insertions, 6 deletions
diff --git a/vespajlib/src/main/java/com/yahoo/io/TeeInputStream.java b/vespajlib/src/main/java/com/yahoo/io/TeeInputStream.java
index 8da0a017ec0..18fbc3ac37a 100644
--- a/vespajlib/src/main/java/com/yahoo/io/TeeInputStream.java
+++ b/vespajlib/src/main/java/com/yahoo/io/TeeInputStream.java
@@ -51,16 +51,19 @@ class TeeInputStream extends InputStream {
this.dst = to;
}
- public @Override int available() throws IOException {
+ @Override
+ public int available() throws IOException {
return inBuf() + src.available();
}
- public @Override void close() throws IOException {
+ @Override
+ public void close() throws IOException {
src.close();
dst.close();
}
- public @Override int read() throws IOException {
+ @Override
+ public int read() throws IOException {
fillBuf();
if (inBuf() > 0) {
int r = buf[readPos++];
@@ -69,11 +72,13 @@ class TeeInputStream extends InputStream {
return -1;
}
- public @Override int read(byte[] b) throws IOException {
+ @Override
+ public int read(byte[] b) throws IOException {
return read(b, 0, b.length);
}
- public @Override int read(byte[] b, int off, int len) throws IOException {
+ @Override
+ public int read(byte[] b, int off, int len) throws IOException {
if (len <= 0) {
return 0;
}
diff --git a/vespajlib/src/test/java/com/yahoo/io/TeeInputStreamTest.java b/vespajlib/src/test/java/com/yahoo/io/TeeInputStreamTest.java
index 315e8d5f8d4..728359bc2d1 100644
--- a/vespajlib/src/test/java/com/yahoo/io/TeeInputStreamTest.java
+++ b/vespajlib/src/test/java/com/yahoo/io/TeeInputStreamTest.java
@@ -34,7 +34,8 @@ public class TeeInputStreamTest {
private class Generator implements Runnable {
private OutputStream dst;
public Generator(OutputStream dst) { this.dst = dst; }
- public @Override void run() {
+ @Override
+ public void run() {
for (int i = 0; i < 123456789; i++) {
int b = i & 0x7f;
if (b < 32) continue;