[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);
|
||||
}
|
||||
|
||||
@SuppressWarnings({ "rawtypes", "unchecked" })
|
||||
public <T extends StrolchTimedState> T getTimedState(String id) {
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
public <T extends StrolchTimedState<?>> T getTimedState(String id) {
|
||||
if (this.timedStateMap == null) {
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue