diff options
author | Noel Grandin <noel@peralex.com> | 2014-08-06 08:55:09 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-08-12 09:41:28 +0200 |
commit | 0477e6c39b7ce8b7f6560fbf222c19fe4f358dc8 (patch) | |
tree | 218eba20dd23c6a865cf01aa7532bf1261a69bc8 /connectivity | |
parent | e2e55a7c49079dfd896da6515b98d451e4c8735b (diff) |
java: add @Override annotation to overriding methods
Change-Id: I086964c6f6ce52c60c52b6dbc445d3c21d22c80a
Diffstat (limited to 'connectivity')
5 files changed, 14 insertions, 0 deletions
diff --git a/connectivity/com/sun/star/sdbcx/comp/hsqldb/NativeInputStreamHelper.java b/connectivity/com/sun/star/sdbcx/comp/hsqldb/NativeInputStreamHelper.java index 62e17e252a2c..c8e7d5d84b03 100644 --- a/connectivity/com/sun/star/sdbcx/comp/hsqldb/NativeInputStreamHelper.java +++ b/connectivity/com/sun/star/sdbcx/comp/hsqldb/NativeInputStreamHelper.java @@ -34,26 +34,32 @@ public class NativeInputStreamHelper extends java.io.InputStream{ in = new StorageNativeInputStream(key,file); } + @Override public int read() throws java.io.IOException { return in.read(key,file); } + @Override public int read(byte[] b, int off, int len) throws java.io.IOException { return in.read(key,file,b,off,len); } + @Override public void close() throws java.io.IOException { in.close(key,file); } + @Override public long skip(long n) throws java.io.IOException { return in.skip(key,file,n); } + @Override public int available() throws java.io.IOException { return in.available(key,file); } + @Override public int read(byte[] b) throws java.io.IOException { return in.read(key,file,b); } diff --git a/connectivity/com/sun/star/sdbcx/comp/hsqldb/NativeOutputStreamHelper.java b/connectivity/com/sun/star/sdbcx/comp/hsqldb/NativeOutputStreamHelper.java index 922e7111355a..24776f25c2f4 100644 --- a/connectivity/com/sun/star/sdbcx/comp/hsqldb/NativeOutputStreamHelper.java +++ b/connectivity/com/sun/star/sdbcx/comp/hsqldb/NativeOutputStreamHelper.java @@ -36,22 +36,27 @@ public class NativeOutputStreamHelper extends java.io.OutputStream{ out = new StorageNativeOutputStream(file,key); } + @Override public void write(byte[] b, int off, int len) throws java.io.IOException{ out.write(key,file,b, off, len); } + @Override public void write(byte[] b) throws java.io.IOException{ out.write(key,file,b); } + @Override public void close() throws java.io.IOException{ out.close(key,file); } + @Override public void write(int b) throws java.io.IOException{ out.write(key,file,b); } + @Override public void flush() throws java.io.IOException{ out.flush(key,file); } diff --git a/connectivity/qa/complex/connectivity/DBaseDriverTest.java b/connectivity/qa/complex/connectivity/DBaseDriverTest.java index 096676e3b130..6afada84890c 100644 --- a/connectivity/qa/complex/connectivity/DBaseDriverTest.java +++ b/connectivity/qa/complex/connectivity/DBaseDriverTest.java @@ -27,6 +27,7 @@ import share.LogWriter; public class DBaseDriverTest extends ComplexTestCase implements TestCase { + @Override public String[] getTestMethodNames() { return new String[] diff --git a/connectivity/qa/complex/connectivity/HsqlDriverTest.java b/connectivity/qa/complex/connectivity/HsqlDriverTest.java index 65115aa0c53d..a0ff160b1fb8 100644 --- a/connectivity/qa/complex/connectivity/HsqlDriverTest.java +++ b/connectivity/qa/complex/connectivity/HsqlDriverTest.java @@ -38,6 +38,7 @@ import connectivity.tools.HsqlDatabase; public class HsqlDriverTest extends ComplexTestCase { + @Override public String[] getTestMethodNames() { return new String[] { "test" }; } diff --git a/connectivity/qa/complex/connectivity/JdbcLongVarCharTest.java b/connectivity/qa/complex/connectivity/JdbcLongVarCharTest.java index 6e2c214692e6..9b827529a4e2 100644 --- a/connectivity/qa/complex/connectivity/JdbcLongVarCharTest.java +++ b/connectivity/qa/complex/connectivity/JdbcLongVarCharTest.java @@ -35,6 +35,7 @@ import complexlib.ComplexTestCase; public class JdbcLongVarCharTest extends ComplexTestCase { + @Override public String[] getTestMethodNames() { return new String[] |