From 3b3df42e7496b708a03b6b69b1f195c178541999 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Per-=C3=85ke=20Minborg?= Date: Thu, 27 Oct 2016 23:06:44 -0700 Subject: [PATCH] Add @Override annotations Change-Id: I80b73b653e97904605dc62484a7448f3bfbf7240 --- server/src/main/java/com/vaadin/server/KeyMapper.java | 4 ++++ .../component/reachtextarea/RichTextAreaDeclarativeTest.java | 2 ++ 2 files changed, 6 insertions(+) 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 implements DataKeyMapper, Serializable { * @param o * the object. */ + @Override public String key(V o) { if (o == null) { @@ -69,6 +70,7 @@ public class KeyMapper implements DataKeyMapper, 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 implements DataKeyMapper, 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 implements DataKeyMapper, 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 { + @Override public void valueDeserialization() throws InstantiationException, IllegalAccessException { String value = "Header \n
Some text"; @@ -39,6 +40,7 @@ public class RichTextAreaDeclarativeTest testWrite(design, component); } + @Override public void readOnlyValue() throws InstantiationException, IllegalAccessException { String value = "Header \n
Some text"; -- 2.39.5