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 /qadevOOo/runner/lib | |
parent | e2e55a7c49079dfd896da6515b98d451e4c8735b (diff) |
java: add @Override annotation to overriding methods
Change-Id: I086964c6f6ce52c60c52b6dbc445d3c21d22c80a
Diffstat (limited to 'qadevOOo/runner/lib')
-rw-r--r-- | qadevOOo/runner/lib/MultiPropertyTest.java | 3 | ||||
-rw-r--r-- | qadevOOo/runner/lib/Status.java | 1 | ||||
-rw-r--r-- | qadevOOo/runner/lib/TestParameters.java | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/qadevOOo/runner/lib/MultiPropertyTest.java b/qadevOOo/runner/lib/MultiPropertyTest.java index a0c93f34896c..10d2a67fb103 100644 --- a/qadevOOo/runner/lib/MultiPropertyTest.java +++ b/qadevOOo/runner/lib/MultiPropertyTest.java @@ -72,6 +72,7 @@ public class MultiPropertyTest extends MultiMethodTest /** * Overrides super.before() to check the service is supported by the object. */ + @Override protected void before() { XServiceInfo xInfo = UnoRuntime.queryInterface( @@ -102,6 +103,7 @@ public class MultiPropertyTest extends MultiMethodTest * * @see MultiMethodTest#invokeTestMethod */ + @Override protected void invokeTestMethod(Method meth, String methName) { if (meth != null) @@ -513,6 +515,7 @@ public class MultiPropertyTest extends MultiMethodTest * @return The second value if old value is equal to the first * one, the first value otherwise. */ + @Override protected Object getNewValue(String propName, Object old) { if (ValueComparer.equalValue(val1, old)) diff --git a/qadevOOo/runner/lib/Status.java b/qadevOOo/runner/lib/Status.java index e19f8bb39169..680e499cf8da 100644 --- a/qadevOOo/runner/lib/Status.java +++ b/qadevOOo/runner/lib/Status.java @@ -110,6 +110,7 @@ public class Status extends SimpleStatus { * description and appends to it it the reason, for example: * "FAILED.The getLabel works wrong", "PASSED.OK". */ + @Override public String toString() { String str = getRunStateString() + "." + getStateString(); diff --git a/qadevOOo/runner/lib/TestParameters.java b/qadevOOo/runner/lib/TestParameters.java index 17d5cdd95dd0..b560430dca41 100644 --- a/qadevOOo/runner/lib/TestParameters.java +++ b/qadevOOo/runner/lib/TestParameters.java @@ -170,6 +170,7 @@ public class TestParameters extends HashMap<String,Object> { * @return The value of this key. * @see java.util.HashMap */ + @Override public Object get(Object key) { Object val = super.get(key); if (val == null && DebugIsActive) { @@ -237,6 +238,7 @@ public class TestParameters extends HashMap<String,Object> { * @return The value of this key. * @see java.util.HashMap */ + @Override public Object put(String key, Object val) { return super.put(key,val); } |