From a53860d53dcddc86dae4195b6dff259e1bf8e129 Mon Sep 17 00:00:00 2001 From: Arnaud Roques Date: Tue, 20 Apr 2021 22:27:12 +0200 Subject: [PATCH] Fix compile error --- .../sourceforge/plantuml/elk/proxy/graph/ElkWithProperty.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); }