Skip to content

Commit

Permalink
Switch new Byte() to Byte.valueOf()
Browse files Browse the repository at this point in the history
The Byte() constructors were deprecated in Java 9. Switch to valueOf()
instead.
  • Loading branch information
jeremybettis committed Aug 6, 2024
1 parent e711051 commit 95f72a4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ public XmlElement serialize(Object object) throws XMLRPCException {
byte[] old = (byte[])object;
Byte[] boxed = new Byte[old.length];
for(int i = 0; i < boxed.length; i++) {
boxed[i] = new Byte(old[i]);
boxed[i] = Byte.valueOf(old[i]);
}
object = boxed;
s = base64;
Expand Down

0 comments on commit 95f72a4

Please sign in to comment.