svn commit: r14917 - trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/ModeCreateAssociationEnd.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: bobtarling
Date: 2008-06-12 18:37:47-0700
New Revision: 14917

Modified:
   trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/ModeCreateAssociationEnd.java

Log:
Fix warnings

Modified: trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/ModeCreateAssociationEnd.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/ModeCreateAssociationEnd.java?view=diff&rev=14917&p1=trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/ModeCreateAssociationEnd.java&p2=trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/ModeCreateAssociationEnd.java&r1=14916&r2=14917
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/ModeCreateAssociationEnd.java	(original)
+++ trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/ModeCreateAssociationEnd.java	2008-06-12 18:37:47-0700
@@ -27,7 +27,6 @@
 import java.awt.Color;
 import java.util.Collection;
 
-import org.apache.log4j.Logger;
 import org.argouml.model.IllegalModelElementConnectionException;
 import org.argouml.model.Model;
 import org.tigris.gef.base.Layer;
@@ -55,9 +54,6 @@
      */
     private static final long serialVersionUID = -7249069222789301797L;
     
-    private static final Logger LOG =
-	Logger.getLogger(ModeCreateAssociationEnd.class);
-
     public Object getMetaType() {
         return Model.getMetaTypes().getAssociationEnd();
     }
@@ -69,8 +65,9 @@
      * @param graphModel     the graph model in which to create the connection
      *                       element
      * @param edgeType       the UML object type of the connection
-     * @param sourceFigNode  the FigNode for the source element
-     * @param destFigNode    the FigNode for the destination element
+     * @param sourceFig      the FigNode for the source element
+     * @param destFig        the FigNode for the destination element
+     * @return The FigEdge representing the newly created model element
      */
     @Override
     protected FigEdge buildConnection(
@@ -109,9 +106,9 @@
                 _newItem.setLineColor(Color.black);
                 fe.setFig(_newItem);
                 fe.setSourcePortFig(sourceFigNode);
-                fe.setSourceFigNode((FigNode) sourceFigNode);
+                fe.setSourceFigNode(sourceFigNode);
                 fe.setDestPortFig(destFigNode);
-                fe.setDestFigNode((FigNode) destFigNode);
+                fe.setDestFigNode(destFigNode);
                 return fe;
             } else {
                 return null;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.