diff --git a/api/src/main/java/jakarta/xml/bind/annotation/adapters/HexBinaryAdapter.java b/api/src/main/java/jakarta/xml/bind/annotation/adapters/HexBinaryAdapter.java index 5a74f80..90c54fe 100644 --- a/api/src/main/java/jakarta/xml/bind/annotation/adapters/HexBinaryAdapter.java +++ b/api/src/main/java/jakarta/xml/bind/annotation/adapters/HexBinaryAdapter.java @@ -28,7 +28,7 @@ public HexBinaryAdapter() {} @Override public byte[] unmarshal(String s) { if(s==null) return null; - return DatatypeConverter.parseHexBinary(s); + return DatatypeConverter.parseHexBinary(s.trim()); } @Override