diff --git a/src/net/sourceforge/plantuml/elk/proxy/graph/ElkWithProperty.java b/src/net/sourceforge/plantuml/elk/proxy/graph/ElkWithProperty.java index 1b74c0d71..2500af94c 100644 --- a/src/net/sourceforge/plantuml/elk/proxy/graph/ElkWithProperty.java +++ b/src/net/sourceforge/plantuml/elk/proxy/graph/ElkWithProperty.java @@ -27,13 +27,14 @@ public class ElkWithProperty { return this.obj.equals(((ElkWithProperty) other).obj); } + @SuppressWarnings({ "unchecked", "rawtypes" }) final public void setProperty(Object key, Object value) { if (value instanceof EnumSet) { EnumSet result = null; for (Object foo : (Collection) value) { final EnumProxy elk = (EnumProxy) foo; if (result == null) { - result = EnumSet.noneOf((Class) elk.getClass()); + result = EnumSet.noneOf((Class) elk.getClass()); } result.add(elk); }