]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
Removed warnings.
authorlehtonen <lehtonen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Wed, 17 Mar 2010 07:48:59 +0000 (07:48 +0000)
committerlehtonen <lehtonen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Wed, 17 Mar 2010 07:48:59 +0000 (07:48 +0000)
git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@15035 ac1ea38d-2e2b-0410-8846-a27921b304fc

org.simantics.h2d/src/org/simantics/h2d/element/Element.java
org.simantics.h2d/src/org/simantics/h2d/node/ShapeNode.java

index 3e48cc587cf04535740ce7a5cff6800dcc87b24f..96bc225046e1c7090146842ea6acd372f2c57cd9 100644 (file)
@@ -16,6 +16,7 @@ public abstract class Element implements IElement {
 \r
        IElementListener listener;\r
        \r
+       @SuppressWarnings("unchecked")\r
        @Override\r
        public <T> T getInterface(Class<T> clazz) {\r
                if(clazz.isInstance(this))\r
index 44159a7336541c83e547a70139c92539d43cc2bf..495fb614b66b98317d9f2dd6ad0d2f9347a8309f 100644 (file)
  *******************************************************************************/\r
 package org.simantics.h2d.node;
 
-import java.awt.BasicStroke;
-import java.awt.Color;
-import java.awt.Graphics2D;
-import java.awt.RenderingHints;
-import java.awt.Shape;
-import java.awt.Stroke;
-import java.awt.geom.AffineTransform;
-import java.awt.geom.Rectangle2D;
-
-import org.simantics.scenegraph.g2d.G2DNode;
-import org.simantics.scenegraph.utils.GeometryUtils;
+import java.awt.BasicStroke;\r
+import java.awt.Color;\r
+import java.awt.Graphics2D;\r
+import java.awt.RenderingHints;\r
+import java.awt.Shape;\r
+import java.awt.Stroke;\r
+import java.awt.geom.Rectangle2D;\r
+\r
+import org.simantics.scenegraph.g2d.G2DNode;\r
+import org.simantics.scenegraph.utils.GeometryUtils;\r
 
 public class ShapeNode extends G2DNode {