gitlab #16
Change-Id: I4f8c25790d3d0dc39726efda82abe8734552e0d1
this.resource = resource;
}
+ @SuppressWarnings("unchecked")
@Override
- public Object getAdapter(Class adapter) {
+ public <T> T getAdapter(Class<T> adapter) {
if (Resource.class == adapter)
- return resource;
+ return (T)resource;
return null;
}
this.resource = resource;
}
+ @SuppressWarnings("unchecked")
@Override
- public Object getAdapter(Class adapter) {
+ public <T> T getAdapter(Class<T> adapter) {
if (Resource.class == adapter)
- return resource;
+ return (T)resource;
return null;
}