mirror of
https://github.com/google/nomulus
synced 2026-01-09 07:33:42 +00:00
Fix generics in EppXmlTransformer.unmarshal to not be only on the return type.
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=124914271
This commit is contained in:
@@ -184,7 +184,7 @@ public class RdeParser {
|
||||
ByteArrayOutputStream bout = new ByteArrayOutputStream();
|
||||
t.transform(new StAXSource(reader), new StreamResult(bout));
|
||||
ByteArrayInputStream bin = new ByteArrayInputStream(bout.toByteArray());
|
||||
Object element = XjcXmlTransformer.unmarshal(bin);
|
||||
Object element = XjcXmlTransformer.unmarshal(Object.class, bin);
|
||||
return element;
|
||||
} else {
|
||||
throw new IllegalStateException(String.format("Not at element %s:%s", uri, name));
|
||||
|
||||
Reference in New Issue
Block a user