svn commit: r15889 - trunk/src/argouml-app/src/org/argouml/uml/diagram/use_case/ui/FigUseCase.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: tfmorris
Date: 2008-10-06 10:48:07-0700
New Revision: 15889

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

Log:
Kill chatty debug message.  Add generics.

Modified: trunk/src/argouml-app/src/org/argouml/uml/diagram/use_case/ui/FigUseCase.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/diagram/use_case/ui/FigUseCase.java?view=diff&rev=15889&p1=trunk/src/argouml-app/src/org/argouml/uml/diagram/use_case/ui/FigUseCase.java&p2=trunk/src/argouml-app/src/org/argouml/uml/diagram/use_case/ui/FigUseCase.java&r1=15888&r2=15889
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/uml/diagram/use_case/ui/FigUseCase.java	(original)
+++ trunk/src/argouml-app/src/org/argouml/uml/diagram/use_case/ui/FigUseCase.java	2008-10-06 10:48:07-0700
@@ -39,7 +39,6 @@
 
 import javax.swing.Action;
 
-import org.apache.log4j.Logger;
 import org.argouml.model.AssociationChangeEvent;
 import org.argouml.model.AttributeChangeEvent;
 import org.argouml.model.Model;
@@ -113,17 +112,6 @@
     implements ExtensionsCompartmentContainer {
 
     /**
-     * Logger.
-     */
-    private static final Logger LOG = Logger.getLogger(FigUseCase.class);
-
-    ///////////////////////////////////////////////////////////////////////////
-    //
-    // Constants
-    //
-    ///////////////////////////////////////////////////////////////////////////
-
-    /**
      * The minimum padding allowed above and below the rectangle for
      * the use case name and extension points to the top of the use
      * case oval itself.<p>
@@ -140,12 +128,6 @@
      */
     private static final int SPACER = 2;
 
-    ///////////////////////////////////////////////////////////////////////////
-    //
-    // Instance variables
-    //
-    ///////////////////////////////////////////////////////////////////////////
-
     /**
      * UML use cases do not really have ports, so just define one big
      * one so that users can drag edges to or from any point in the
@@ -890,7 +872,6 @@
             Point res =
 		new Point((int) (mu * dx + _x + rx),
 			  (int) (mu * dy + _y + ry));
-            LOG.debug("    returns " + res.x + ',' + res.y + ')');
             return res;
         }
 
@@ -1235,9 +1216,9 @@
      * @see org.tigris.gef.presentation.Fig#getGravityPoints()
      */
     @Override
-    public List getGravityPoints() {
+    public List<Point> getGravityPoints() {
         final int maxPoints = 30;
-        List ret = new ArrayList(maxPoints);
+        List<Point> ret = new ArrayList<Point>(maxPoints);
         int cx = bigPort.getCenter().x;
         int cy = bigPort.getCenter().y;
         int radiusx = Math.round(bigPort.getWidth() / 2) + 1;
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.