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 /ridljar | |
parent | e2e55a7c49079dfd896da6515b98d451e4c8735b (diff) |
java: add @Override annotation to overriding methods
Change-Id: I086964c6f6ce52c60c52b6dbc445d3c21d22c80a
Diffstat (limited to 'ridljar')
-rw-r--r-- | ridljar/com/sun/star/lib/uno/typedesc/TypeDescription.java | 1 | ||||
-rw-r--r-- | ridljar/com/sun/star/lib/util/WeakMap.java | 2 | ||||
-rw-r--r-- | ridljar/test/com/sun/star/uno/UnoRuntime_Test.java | 1 |
3 files changed, 4 insertions, 0 deletions
diff --git a/ridljar/com/sun/star/lib/uno/typedesc/TypeDescription.java b/ridljar/com/sun/star/lib/uno/typedesc/TypeDescription.java index 117f9d6f05aa..fef19cf7f200 100644 --- a/ridljar/com/sun/star/lib/uno/typedesc/TypeDescription.java +++ b/ridljar/com/sun/star/lib/uno/typedesc/TypeDescription.java @@ -215,6 +215,7 @@ public final class TypeDescription implements ITypeDescription { } // @see Object#toString + @Override public String toString() { return "[" + getClass().getName() + ": " + getTypeClass() + ", " + getTypeName() + "]"; diff --git a/ridljar/com/sun/star/lib/util/WeakMap.java b/ridljar/com/sun/star/lib/util/WeakMap.java index 69c2cb0146b6..75b89b12c7d8 100644 --- a/ridljar/com/sun/star/lib/util/WeakMap.java +++ b/ridljar/com/sun/star/lib/util/WeakMap.java @@ -245,10 +245,12 @@ public final class WeakMap<K,V> implements Map { return map.entrySet(); } + @Override public boolean equals(Object o) { return map.equals(o); } + @Override public int hashCode() { return map.hashCode(); } diff --git a/ridljar/test/com/sun/star/uno/UnoRuntime_Test.java b/ridljar/test/com/sun/star/uno/UnoRuntime_Test.java index cfc773f5296f..5992eda802b2 100644 --- a/ridljar/test/com/sun/star/uno/UnoRuntime_Test.java +++ b/ridljar/test/com/sun/star/uno/UnoRuntime_Test.java @@ -171,6 +171,7 @@ public final class UnoRuntime_Test { } private final class TestThread extends Thread { + @Override public void run() { //TODO: JUnit does not notice if these asserts fail: assertNull(UnoRuntime.getCurrentContext()); |