mirror of
https://github.com/octoleo/plantuml.git
synced 2024-12-22 19:09:03 +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);
|
return this.obj.equals(((ElkWithProperty) other).obj);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings({ "unchecked", "rawtypes" })
|
||||||
final public void setProperty(Object key, Object value) {
|
final public void setProperty(Object key, Object value) {
|
||||||
if (value instanceof EnumSet) {
|
if (value instanceof EnumSet) {
|
||||||
EnumSet result = null;
|
EnumSet result = null;
|
||||||
for (Object foo : (Collection) value) {
|
for (Object foo : (Collection) value) {
|
||||||
final EnumProxy elk = (EnumProxy) foo;
|
final EnumProxy elk = (EnumProxy) foo;
|
||||||
if (result == null) {
|
if (result == null) {
|
||||||
result = EnumSet.noneOf((Class<Enum>) elk.getClass());
|
result = EnumSet.noneOf((Class) elk.getClass());
|
||||||
}
|
}
|
||||||
result.add(elk);
|
result.add(elk);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user