]> source.dussan.org Git - vaadin-framework.git/commitdiff
Add @Override annotations
authorPer-Åke Minborg <minborg@speedment.com>
Fri, 28 Oct 2016 06:06:44 +0000 (23:06 -0700)
committerHenri Sara <hesara@vaadin.com>
Wed, 2 Nov 2016 14:18:52 +0000 (14:18 +0000)
Change-Id: I80b73b653e97904605dc62484a7448f3bfbf7240

server/src/main/java/com/vaadin/server/KeyMapper.java
server/src/test/java/com/vaadin/tests/server/component/reachtextarea/RichTextAreaDeclarativeTest.java

index 54d85c4bcee16677a684d995c1f50dca700c3c31..760d311631766b54f7b9552d970494be8d8f28f6 100644 (file)
@@ -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();
index 43da30bb64d8373ef6d2bcb8081b3edee5cccf0e..e7cab55f94bbdbd1d9c93257b55f032257b0b346 100644 (file)
@@ -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";