From aff3cbbf883df258a846c29b7c27ebf5fb90263b Mon Sep 17 00:00:00 2001 From: lehtonen Date: Wed, 17 Mar 2010 07:48:59 +0000 Subject: [PATCH] Removed warnings. git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@15035 ac1ea38d-2e2b-0410-8846-a27921b304fc --- .../org/simantics/h2d/element/Element.java | 1 + .../src/org/simantics/h2d/node/ShapeNode.java | 21 +++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/org.simantics.h2d/src/org/simantics/h2d/element/Element.java b/org.simantics.h2d/src/org/simantics/h2d/element/Element.java index 3e48cc58..96bc2250 100644 --- a/org.simantics.h2d/src/org/simantics/h2d/element/Element.java +++ b/org.simantics.h2d/src/org/simantics/h2d/element/Element.java @@ -16,6 +16,7 @@ public abstract class Element implements IElement { IElementListener listener; + @SuppressWarnings("unchecked") @Override public T getInterface(Class clazz) { if(clazz.isInstance(this)) diff --git a/org.simantics.h2d/src/org/simantics/h2d/node/ShapeNode.java b/org.simantics.h2d/src/org/simantics/h2d/node/ShapeNode.java index 44159a73..495fb614 100644 --- a/org.simantics.h2d/src/org/simantics/h2d/node/ShapeNode.java +++ b/org.simantics.h2d/src/org/simantics/h2d/node/ShapeNode.java @@ -11,17 +11,16 @@ *******************************************************************************/ 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; +import java.awt.Color; +import java.awt.Graphics2D; +import java.awt.RenderingHints; +import java.awt.Shape; +import java.awt.Stroke; +import java.awt.geom.Rectangle2D; + +import org.simantics.scenegraph.g2d.G2DNode; +import org.simantics.scenegraph.utils.GeometryUtils; public class ShapeNode extends G2DNode { -- 2.47.1