]> source.dussan.org Git - vaadin-framework.git/commitdiff
Remove unnecessary "if not equal" check from AbstractEmbedded.setAlternateText 92/192/2
authorJohannes Dahlström <johannesd@vaadin.com>
Thu, 1 Nov 2012 09:06:25 +0000 (11:06 +0200)
committerVaadin Code Review <review@vaadin.com>
Thu, 1 Nov 2012 11:31:05 +0000 (11:31 +0000)
Change-Id: I7afd1796a44117c0bc834017b30c36283f29d81d

server/src/com/vaadin/ui/AbstractEmbedded.java

index 7dcf7ca0917d69998a779f83a23c6725ab21cefa..7e87d904806c73314aaa9f0f5da691f9530ba1db 100644 (file)
@@ -52,12 +52,7 @@ public abstract class AbstractEmbedded extends AbstractComponent {
      *            content.
      */
     public void setAlternateText(String altText) {
-        if (altText != getState().alternateText
-                || (altText != null && !altText
-                        .equals(getState().alternateText))) {
-            getState().alternateText = altText;
-            requestRepaint();
-        }
+        getState().alternateText = altText;
     }
 
     /**