We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
null
1 parent 57884ff commit 256b24eCopy full SHA for 256b24e
api/src/main/java/jakarta/xml/bind/annotation/adapters/HexBinaryAdapter.java
@@ -1,5 +1,5 @@
1
/*
2
- * Copyright (c) 2004, 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2004, 2025 Oracle and/or its affiliates. All rights reserved.
3
*
4
* This program and the accompanying materials are made available under the
5
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -28,7 +28,7 @@ public HexBinaryAdapter() {}
28
@Override
29
public byte[] unmarshal(String s) {
30
if(s==null) return null;
31
- return DatatypeConverter.parseHexBinary(s);
+ return DatatypeConverter.parseHexBinary(s.trim());
32
}
33
34
0 commit comments