1
0
mirror of https://github.com/octoleo/plantuml.git synced 2024-11-05 21:17:52 +00:00

Fix compile error

This commit is contained in:
Arnaud Roques 2021-04-20 22:27:12 +02:00
parent e1e6bcc5c8
commit a53860d53d

View File

@ -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<Enum>) elk.getClass());
result = EnumSet.noneOf((Class) elk.getClass());
}
result.add(elk);
}