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 /jurt | |
parent | e2e55a7c49079dfd896da6515b98d451e4c8735b (diff) |
java: add @Override annotation to overriding methods
Change-Id: I086964c6f6ce52c60c52b6dbc445d3c21d22c80a
Diffstat (limited to 'jurt')
14 files changed, 23 insertions, 0 deletions
diff --git a/jurt/com/sun/star/lib/uno/bridges/java_remote/ProxyFactory.java b/jurt/com/sun/star/lib/uno/bridges/java_remote/ProxyFactory.java index b24ebdf9c5c2..465769be3768 100644 --- a/jurt/com/sun/star/lib/uno/bridges/java_remote/ProxyFactory.java +++ b/jurt/com/sun/star/lib/uno/bridges/java_remote/ProxyFactory.java @@ -124,6 +124,7 @@ final class ProxyFactory { } } + @Override protected void finalize() { AsynchronousFinalizer.add(new AsynchronousFinalizer.Job() { public void run() throws Throwable { diff --git a/jurt/com/sun/star/lib/uno/bridges/java_remote/XConnectionInputStream_Adapter.java b/jurt/com/sun/star/lib/uno/bridges/java_remote/XConnectionInputStream_Adapter.java index a189115b47ec..87b3ea19d1fc 100644 --- a/jurt/com/sun/star/lib/uno/bridges/java_remote/XConnectionInputStream_Adapter.java +++ b/jurt/com/sun/star/lib/uno/bridges/java_remote/XConnectionInputStream_Adapter.java @@ -39,6 +39,7 @@ class XConnectionInputStream_Adapter extends InputStream { _xConnection = xConnection; } + @Override public int read() throws IOException { int len; diff --git a/jurt/com/sun/star/lib/uno/bridges/java_remote/XConnectionOutputStream_Adapter.java b/jurt/com/sun/star/lib/uno/bridges/java_remote/XConnectionOutputStream_Adapter.java index 3bc7e49975a5..3730722eb12b 100644 --- a/jurt/com/sun/star/lib/uno/bridges/java_remote/XConnectionOutputStream_Adapter.java +++ b/jurt/com/sun/star/lib/uno/bridges/java_remote/XConnectionOutputStream_Adapter.java @@ -37,6 +37,7 @@ class XConnectionOutputStream_Adapter extends OutputStream { _xConnection = xConnection; } + @Override public void write(int b) throws IOException { _bytes[0] = (byte)b; diff --git a/jurt/com/sun/star/lib/uno/bridges/java_remote/java_remote_bridge.java b/jurt/com/sun/star/lib/uno/bridges/java_remote/java_remote_bridge.java index e997fa48d55d..5cdb282c9991 100644 --- a/jurt/com/sun/star/lib/uno/bridges/java_remote/java_remote_bridge.java +++ b/jurt/com/sun/star/lib/uno/bridges/java_remote/java_remote_bridge.java @@ -85,6 +85,7 @@ public class java_remote_bridge super("MessageDispatcher"); } + @Override public void run() { try { for (;;) { diff --git a/jurt/com/sun/star/lib/uno/environments/java/java_environment.java b/jurt/com/sun/star/lib/uno/environments/java/java_environment.java index e02f0cebf2c9..01285c257e84 100644 --- a/jurt/com/sun/star/lib/uno/environments/java/java_environment.java +++ b/jurt/com/sun/star/lib/uno/environments/java/java_environment.java @@ -153,6 +153,7 @@ public final class java_environment implements IEnvironment { // bridges forbids to transparently share proxies between bridges, and using // different java_environment instances for different bridges is the way to // enforce this. + @Override public boolean equals(Object obj) { return false; } diff --git a/jurt/com/sun/star/lib/uno/environments/remote/JobQueue.java b/jurt/com/sun/star/lib/uno/environments/remote/JobQueue.java index 6cd54f0b2e1a..c81739248ca7 100644 --- a/jurt/com/sun/star/lib/uno/environments/remote/JobQueue.java +++ b/jurt/com/sun/star/lib/uno/environments/remote/JobQueue.java @@ -78,6 +78,7 @@ public class JobQueue { return _threadId; } + @Override public void run() { if(DEBUG) System.err.println("ThreadPool$JobDispatcher.run: " + Thread.currentThread()); diff --git a/jurt/com/sun/star/lib/util/AsynchronousFinalizer.java b/jurt/com/sun/star/lib/util/AsynchronousFinalizer.java index 1657ecfc3199..28c32bbe35ce 100644 --- a/jurt/com/sun/star/lib/util/AsynchronousFinalizer.java +++ b/jurt/com/sun/star/lib/util/AsynchronousFinalizer.java @@ -69,6 +69,7 @@ public final class AsynchronousFinalizer { static { Thread t = new Thread() { + @Override public void run() { for (;;) { Job j; diff --git a/jurt/test/com/sun/star/comp/connections/PipedConnection_Test.java b/jurt/test/com/sun/star/comp/connections/PipedConnection_Test.java index 1f649e54e50a..6d9027a4423e 100644 --- a/jurt/test/com/sun/star/comp/connections/PipedConnection_Test.java +++ b/jurt/test/com/sun/star/comp/connections/PipedConnection_Test.java @@ -52,6 +52,7 @@ public final class PipedConnection_Test { _pipedConnection = pipedConnection; } + @Override public void run() { try { for (byte v = 0;; v++) { @@ -81,6 +82,7 @@ public final class PipedConnection_Test { _pipedConnection = pipedConnection; } + @Override public void run() { try { byte v = 0; diff --git a/jurt/test/com/sun/star/lib/uno/environments/remote/JavaThreadPoolFactory_Test.java b/jurt/test/com/sun/star/lib/uno/environments/remote/JavaThreadPoolFactory_Test.java index ce98137245c4..b6d2633ee99b 100644 --- a/jurt/test/com/sun/star/lib/uno/environments/remote/JavaThreadPoolFactory_Test.java +++ b/jurt/test/com/sun/star/lib/uno/environments/remote/JavaThreadPoolFactory_Test.java @@ -27,6 +27,7 @@ public final class JavaThreadPoolFactory_Test { assertEquals(i1, JavaThreadPoolFactory.getThreadId()); final ThreadId[] i2 = new ThreadId[1]; new Thread() { + @Override public void run() { synchronized (i2) { i2[0] = JavaThreadPoolFactory.getThreadId(); diff --git a/jurt/test/com/sun/star/lib/uno/environments/remote/JobQueue_Test.java b/jurt/test/com/sun/star/lib/uno/environments/remote/JobQueue_Test.java index 87e69a765cc1..23b6fa537c71 100644 --- a/jurt/test/com/sun/star/lib/uno/environments/remote/JobQueue_Test.java +++ b/jurt/test/com/sun/star/lib/uno/environments/remote/JobQueue_Test.java @@ -206,6 +206,7 @@ public final class JobQueue_Test { waitTime = 0; } + @Override public void run() { synchronized (lock) { state = STATE_STARTED; diff --git a/jurt/test/com/sun/star/lib/uno/environments/remote/ThreadPool_Test.java b/jurt/test/com/sun/star/lib/uno/environments/remote/ThreadPool_Test.java index 43323bc1dc72..94dfb884392f 100644 --- a/jurt/test/com/sun/star/lib/uno/environments/remote/ThreadPool_Test.java +++ b/jurt/test/com/sun/star/lib/uno/environments/remote/ThreadPool_Test.java @@ -233,6 +233,7 @@ public class ThreadPool_Test { this.count = count; } + @Override public void run() { try { for (int i = 0; i < count; ++i) { @@ -249,6 +250,7 @@ public class ThreadPool_Test { } Stress stress1 = new Stress(50) { + @Override protected void runTest() throws InterruptedException { testThreadAsync(); } @@ -256,6 +258,7 @@ public class ThreadPool_Test { stress1.start(); Stress stress2 = new Stress(50) { + @Override protected void runTest() throws InterruptedException { testDynamicThreadSync(); } @@ -263,6 +266,7 @@ public class ThreadPool_Test { stress2.start(); Stress stress3 = new Stress(50) { + @Override protected void runTest() throws InterruptedException { testStaticThreadSync(); } @@ -270,6 +274,7 @@ public class ThreadPool_Test { stress3.start(); Stress stress4 = new Stress(50) { + @Override protected void runTest() throws InterruptedException { testDynamicThreadAsyncSyncOrder(); } @@ -277,6 +282,7 @@ public class ThreadPool_Test { stress4.start(); Stress stress5 = new Stress(50) { + @Override protected void runTest() throws InterruptedException { testStaticThreadAsyncSyncOrder(); } @@ -284,6 +290,7 @@ public class ThreadPool_Test { stress5.start(); Stress stress6 = new Stress(500) { + @Override protected void runTest() throws InterruptedException { testDispose(); } @@ -348,6 +355,7 @@ public class ThreadPool_Test { _iThreadPool = iThreadPool; } + @Override public void run() { _threadId = _iThreadPool.getThreadId(); diff --git a/jurt/test/com/sun/star/lib/uno/protocols/urp/Protocol_Test.java b/jurt/test/com/sun/star/lib/uno/protocols/urp/Protocol_Test.java index b1be2aea8535..a7ee1e511c6d 100644 --- a/jurt/test/com/sun/star/lib/uno/protocols/urp/Protocol_Test.java +++ b/jurt/test/com/sun/star/lib/uno/protocols/urp/Protocol_Test.java @@ -255,6 +255,7 @@ public final class Protocol_Test { { protocol = new urp(bridge, null, input, output); new Thread() { + @Override public void run() { for (;;) { Object o; diff --git a/jurt/test/com/sun/star/lib/util/NativeLibraryLoader_Test.java b/jurt/test/com/sun/star/lib/util/NativeLibraryLoader_Test.java index e90168cfa469..c48ec4f34ab3 100644 --- a/jurt/test/com/sun/star/lib/util/NativeLibraryLoader_Test.java +++ b/jurt/test/com/sun/star/lib/util/NativeLibraryLoader_Test.java @@ -39,6 +39,7 @@ public final class NativeLibraryLoader_Test { File file2 = NativeLibraryLoader.getResource( new ClassLoader() { + @Override public URL getResource(String name) { return url; } @@ -61,6 +62,7 @@ public final class NativeLibraryLoader_Test { File file2 = NativeLibraryLoader.getResource( new ClassLoader() { + @Override public URL getResource(String name) { return url; } diff --git a/jurt/test/com/sun/star/uno/WeakReference_Test.java b/jurt/test/com/sun/star/uno/WeakReference_Test.java index 6d076ea60bc6..a990f449b288 100644 --- a/jurt/test/com/sun/star/uno/WeakReference_Test.java +++ b/jurt/test/com/sun/star/uno/WeakReference_Test.java @@ -43,6 +43,7 @@ public final class WeakReference_Test { return adapter; } + @Override protected void finalize() { adapter.dispose(); } |