]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.diagram/src/org/simantics/diagram/profile/StyleBase.java
Fix warnings from newly added code
[simantics/platform.git] / bundles / org.simantics.diagram / src / org / simantics / diagram / profile / StyleBase.java
index e1d8b1fbf7e67e043c8af93202f03d95747d9216..9978076c641abd89d207c86610f664c609fc1b0b 100644 (file)
@@ -76,6 +76,7 @@ public abstract class StyleBase<Result> implements Style {
         this.identity = getClass();
     }
 
+    @SuppressWarnings("unchecked")
     protected <T> T getIdentity() {
         return (T)identity;
     }
@@ -96,7 +97,7 @@ public abstract class StyleBase<Result> implements Style {
             return false;
         if (getClass() != obj.getClass())
             return false;
-        StyleBase other = (StyleBase) obj;
+        StyleBase<?> other = (StyleBase<?>) obj;
         if (identity == null) {
             if (other.identity != null)
                 return false;