mirror of
https://github.com/MewoLab/AquaDX.git
synced 2025-10-26 04:22:38 +00:00
[billing] Fix Java 11 incompatibility for real
Attempt was made in commit 15aac7e6 but failed miserably
This commit is contained in:
parent
8426771957
commit
f5c15f52d0
@ -73,7 +73,11 @@ public class BillingController {
|
||||
ByteBuffer sigbytes = ByteBuffer.allocate(15);
|
||||
sigbytes.order(ByteOrder.LITTLE_ENDIAN);
|
||||
sigbytes.putInt(0, val);
|
||||
sigbytes.put(4, keychipId.getBytes(), 0, keychipId.getBytes().length);
|
||||
|
||||
// JDK 11 compatible version of put(int, byte[])
|
||||
for (int i = 0, j = 4; i < keychipId.getBytes().length; i++, j++) {
|
||||
sigbytes.put(j, keychipId.getBytes()[i]);
|
||||
}
|
||||
|
||||
Signature sig;
|
||||
try {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user