]> source.dussan.org Git - vaadin-framework.git/commitdiff
Code cleanup (removes an extra get operation)
authorJohn Alhroos <john.ahlroos@itmill.com>
Tue, 8 Mar 2011 11:44:09 +0000 (11:44 +0000)
committerJohn Alhroos <john.ahlroos@itmill.com>
Tue, 8 Mar 2011 11:44:09 +0000 (11:44 +0000)
svn changeset:17665/svn branch:6.5

src/com/vaadin/ui/AbsoluteLayout.java

index 8f9d65bd72950c6c704d4cd5137f8b40a1e6efc7..c7a1583d28c0e2cfe7efb042159dafaf6dfc0c4a 100644 (file)
@@ -127,8 +127,9 @@ public class AbsoluteLayout extends AbstractLayout implements
          * need to do this before we call addComponent so the attachListeners
          * can access this position. #6368
          */
-        componentToCoordinates.put(c, new ComponentPosition());
-        componentToCoordinates.get(c).setCSSString(cssPosition);
+        ComponentPosition position = new ComponentPosition();
+        position.setCSSString(cssPosition);
+        componentToCoordinates.put(c, position);
 
         try {
             addComponent(c);