We have an unchecked cast supressed here. Use Class.cast() to get
rid of it.
Change-Id: Ie39f9d21095a438a72dc88945e54d1846becf01d
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit
0ad5644d6e4e5a9ef6a18d462c97064d41cbcd42)
@Override
public void schemaSourceEncountered(final SchemaSourceRepresentation source) {
if (representation.isAssignableFrom(source.getType())) {
- @SuppressWarnings("unchecked")
- final T src = (T)source;
- offer(src);
+ offer(representation.cast(source));
}
}