1
0
mirror of https://github.com/google/nomulus synced 2026-01-03 11:45:39 +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:
cgoldfeder
2016-06-14 20:58:57 -07:00
committed by Ben McIlwain
parent 6466ad51f6
commit ec39f15a23
31 changed files with 133 additions and 62 deletions

View File

@@ -86,7 +86,7 @@ final class ValidateEscrowDepositCommand implements Command {
}
private static void validateXmlStream(InputStream inputStream) throws XmlException {
XjcRdeDeposit deposit = XjcXmlTransformer.unmarshal(inputStream);
XjcRdeDeposit deposit = XjcXmlTransformer.unmarshal(XjcRdeDeposit.class, inputStream);
System.out.printf("ID: %s\n", deposit.getId());
System.out.printf("Previous ID: %s\n", deposit.getPrevId());
System.out.printf("Type: %s\n", deposit.getType());