[Project] Resource.getTimedState():<T extends StrolchTimedState<?>> T
This commit is contained in:
parent
bf67d4deac
commit
794b3a4d38
|
@ -69,8 +69,8 @@ public class Resource extends GroupedParameterizedElement
|
||||||
strolchTimedState.setParent(this);
|
strolchTimedState.setParent(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings({ "rawtypes", "unchecked" })
|
@SuppressWarnings({ "unchecked" })
|
||||||
public <T extends StrolchTimedState> T getTimedState(String id) {
|
public <T extends StrolchTimedState<?>> T getTimedState(String id) {
|
||||||
if (this.timedStateMap == null) {
|
if (this.timedStateMap == null) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue