feat(factory): add utility method which does the "unchecked" cast
This commit is contained in:
parent
28d991f17c
commit
8d24604707
@ -31,5 +31,10 @@ public interface ReflectedMethodFactory<I extends Object, C extends Object> {
|
||||
|
||||
private ParserResults() {}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public <T extends Object> T get(Class<? extends MethodParser> key) {
|
||||
return (T) super.get(key);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user