]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.diagram/src/org/simantics/diagram/profile/StyleBaseData.java
Fix warnings from newly added code
[simantics/platform.git] / bundles / org.simantics.diagram / src / org / simantics / diagram / profile / StyleBaseData.java
index ca97fea784d3a35c3449fb8598fe611dbf4c5b6e..074f9239215f26479f1af04c743bc96a982e28d7 100644 (file)
@@ -14,6 +14,10 @@ import org.simantics.scenegraph.profile.common.ObserverGroupListener;
 import org.simantics.scl.runtime.tuple.Tuple;
 import org.simantics.scl.runtime.tuple.Tuple3;
 
+/**
+ * @author Antti Villberg
+ * @since 1.36.0
+ */
 public class StyleBaseData {
 
     private static StyleBaseData INSTANCE;
@@ -46,6 +50,7 @@ public class StyleBaseData {
         values.put(t, o);
     }
 
+    @SuppressWarnings("unchecked")
     public <T> T getValue(Tuple t) {
         return (T) values.get(t);
     }
@@ -71,7 +76,7 @@ public class StyleBaseData {
         return listeners.get(key);
     }
 
-    public synchronized void applyRemovals(EvaluationContext evaluationContext, StyleBase s) {
+    public synchronized void applyRemovals(EvaluationContext evaluationContext, StyleBase<?> s) {
         List<Resource> rs = removals.remove(s);
         if (rs == null)
             return;