aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPer-Åke Minborg <minborg@speedment.com>2016-10-27 23:06:44 -0700
committerHenri Sara <hesara@vaadin.com>2016-11-02 14:18:52 +0000
commit3b3df42e7496b708a03b6b69b1f195c178541999 (patch)
tree28d6439b5448e05a3a9c62443c668a0f6bce7bbf
parentc09128f96cf9d6b9603caee39e5ca7598402c446 (diff)
downloadvaadin-framework-3b3df42e7496b708a03b6b69b1f195c178541999.tar.gz
vaadin-framework-3b3df42e7496b708a03b6b69b1f195c178541999.zip
Add @Override annotations
Change-Id: I80b73b653e97904605dc62484a7448f3bfbf7240
-rw-r--r--server/src/main/java/com/vaadin/server/KeyMapper.java4
-rw-r--r--server/src/test/java/com/vaadin/tests/server/component/reachtextarea/RichTextAreaDeclarativeTest.java2
2 files changed, 6 insertions, 0 deletions
diff --git a/server/src/main/java/com/vaadin/server/KeyMapper.java b/server/src/main/java/com/vaadin/server/KeyMapper.java
index 54d85c4bce..760d311631 100644
--- a/server/src/main/java/com/vaadin/server/KeyMapper.java
+++ b/server/src/main/java/com/vaadin/server/KeyMapper.java
@@ -42,6 +42,7 @@ public class KeyMapper<V> implements DataKeyMapper<V>, Serializable {
* @param o
* the object.
*/
+ @Override
public String key(V o) {
if (o == null) {
@@ -69,6 +70,7 @@ public class KeyMapper<V> implements DataKeyMapper<V>, Serializable {
* the name with the desired value.
* @return the object with the key.
*/
+ @Override
public V get(String key) {
return keyObjectMap.get(key);
}
@@ -79,6 +81,7 @@ public class KeyMapper<V> implements DataKeyMapper<V>, Serializable {
* @param removeobj
* the object to be removed.
*/
+ @Override
public void remove(V removeobj) {
final String key = objectKeyMap.get(removeobj);
@@ -91,6 +94,7 @@ public class KeyMapper<V> implements DataKeyMapper<V>, Serializable {
/**
* Removes all objects from the mapper.
*/
+ @Override
public void removeAll() {
objectKeyMap.clear();
keyObjectMap.clear();
diff --git a/server/src/test/java/com/vaadin/tests/server/component/reachtextarea/RichTextAreaDeclarativeTest.java b/server/src/test/java/com/vaadin/tests/server/component/reachtextarea/RichTextAreaDeclarativeTest.java
index 43da30bb64..e7cab55f94 100644
--- a/server/src/test/java/com/vaadin/tests/server/component/reachtextarea/RichTextAreaDeclarativeTest.java
+++ b/server/src/test/java/com/vaadin/tests/server/component/reachtextarea/RichTextAreaDeclarativeTest.java
@@ -26,6 +26,7 @@ import com.vaadin.ui.RichTextArea;
public class RichTextAreaDeclarativeTest
extends AbstractFieldDeclarativeTest<RichTextArea, String> {
+ @Override
public void valueDeserialization()
throws InstantiationException, IllegalAccessException {
String value = "<b>Header</b> \n<br>Some text";
@@ -39,6 +40,7 @@ public class RichTextAreaDeclarativeTest
testWrite(design, component);
}
+ @Override
public void readOnlyValue()
throws InstantiationException, IllegalAccessException {
String value = "<b>Header</b> \n<br>Some text";