Skip to content

Commit

Permalink
Adjusted test to make use of byte[].
Browse files Browse the repository at this point in the history
  • Loading branch information
rgiulietti committed Oct 21, 2024
1 parent c92f91e commit 1d3cf00
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2013, 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 1996, 2023, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1996, 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down
10 changes: 5 additions & 5 deletions test/jdk/jdk/internal/math/FloatingDecimal/TestFDBigInteger.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2013, 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand All @@ -22,13 +22,13 @@
*/

import java.math.BigInteger;
import java.util.Random;
import java.nio.charset.StandardCharsets;
import jdk.internal.math.FDBigInteger;

/**
* @test
* @bug 7032154
* @summary unit testys of FDBigInteger
* @bug 7032154 8342693
* @summary unit tests of FDBigInteger
* @modules java.base/jdk.internal.math
* @author Dmitry Nadezhin
*/
Expand All @@ -52,7 +52,7 @@ public class TestFDBigInteger {
}

private static FDBigInteger mutable(String hex, int offset) {
char[] chars = new BigInteger(hex, 16).toString().toCharArray();
byte[] chars = new BigInteger(hex, 16).toString().getBytes(StandardCharsets.US_ASCII);
return new FDBigInteger(0, chars, 0, chars.length).multByPow52(0, offset * 32);
}

Expand Down

0 comments on commit 1d3cf00

Please sign in to comment.