[Project] Resource.getTimedState():<T extends StrolchTimedState<?>> T

This commit is contained in:
Robert von Burg 2016-02-10 17:57:43 +01:00
parent bf67d4deac
commit 794b3a4d38
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}