From 0477e6c39b7ce8b7f6560fbf222c19fe4f358dc8 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 6 Aug 2014 08:55:09 +0200 Subject: java: add @Override annotation to overriding methods Change-Id: I086964c6f6ce52c60c52b6dbc445d3c21d22c80a --- ridljar/com/sun/star/lib/uno/typedesc/TypeDescription.java | 1 + ridljar/com/sun/star/lib/util/WeakMap.java | 2 ++ ridljar/test/com/sun/star/uno/UnoRuntime_Test.java | 1 + 3 files changed, 4 insertions(+) (limited to 'ridljar') 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 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()); -- cgit v1.2.3