[Minor] Automated Code cleanup: Casting 'rootElement' to '' may produce 'ClassCastException'
This commit is contained in:
parent
4160837ab6
commit
3c08be1314
|
@ -560,7 +560,7 @@ public abstract class AbstractTransaction implements StrolchTransaction {
|
||||||
throw new StrolchModelException(MessageFormat.format(msg, locator));
|
throw new StrolchModelException(MessageFormat.format(msg, locator));
|
||||||
}
|
}
|
||||||
|
|
||||||
Resource resource = (Resource) rootElement;
|
Resource resource = rootElement.asResource();
|
||||||
String stateId = elements.get(4);
|
String stateId = elements.get(4);
|
||||||
|
|
||||||
StrolchTimedState<IValue<?>> timedState = resource.getTimedState(stateId);
|
StrolchTimedState<IValue<?>> timedState = resource.getTimedState(stateId);
|
||||||
|
|
Loading…
Reference in New Issue