mirror of
https://github.com/octoleo/plantuml.git
synced 2024-12-22 10:59:01 +00:00
Fix compile error
This commit is contained in:
parent
e1e6bcc5c8
commit
a53860d53d
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user