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/test | |
parent | e2e55a7c49079dfd896da6515b98d451e4c8735b (diff) |
java: add @Override annotation to overriding methods
Change-Id: I086964c6f6ce52c60c52b6dbc445d3c21d22c80a
Diffstat (limited to 'jurt/test')
7 files changed, 16 insertions, 0 deletions
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(); } |