Skip to content

Commit 07b6bac

Browse files
committed
compatibility change, use of _ in literal
1 parent 5c12ff9 commit 07b6bac

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

pkix/src/test/java/org/bouncycastle/cert/test/RelatedCertificateTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public void testBinaryTimeRoundTrip()
7575
throws Exception
7676
{
7777
// Pick a fixed epoch-second value to anchor the wire encoding.
78-
long sec = 1_700_000_000L;
78+
long sec = 1700000000L;
7979
BinaryTime t = new BinaryTime(sec);
8080
assertEquals(BigInteger.valueOf(sec), t.getTime());
8181

@@ -161,7 +161,7 @@ public void testRequesterCertificateRoundTrip()
161161
{
162162
IssuerAndSerialNumber certID = new IssuerAndSerialNumber(
163163
new X500Name("CN=Issuer"), BigInteger.valueOf(0x1234567890L));
164-
BinaryTime ts = new BinaryTime(1_700_000_000L);
164+
BinaryTime ts = new BinaryTime(1700000000L);
165165
String[] uris = new String[] {
166166
"https://example.com/certs/abc.cer",
167167
"data:application/pkix-cert;base64,Zm9v"
@@ -202,7 +202,7 @@ public void testSignatureInputLayout()
202202
{
203203
IssuerAndSerialNumber certID = new IssuerAndSerialNumber(
204204
new X500Name("CN=Issuer"), BigInteger.valueOf(0x42));
205-
BinaryTime ts = new BinaryTime(1_700_000_000L);
205+
BinaryTime ts = new BinaryTime(1700000000L);
206206

207207
byte[] expected = concat(
208208
certID.getEncoded(ASN1Encoding.DER),
@@ -305,7 +305,7 @@ private static X509CertificateHolder generateSelfSignedECCert(String dn)
305305
{
306306
KeyPair kp = ecKeyPair();
307307
X500Name name = new X500Name(dn);
308-
Date notBefore = new Date(System.currentTimeMillis() - 60_000L);
308+
Date notBefore = new Date(System.currentTimeMillis() - 60000L);
309309
Date notAfter = new Date(System.currentTimeMillis() + 24 * 60 * 60 * 1000L);
310310
JcaX509v3CertificateBuilder builder = new JcaX509v3CertificateBuilder(
311311
name, BigInteger.valueOf(System.nanoTime() & 0x7fffffffL),

0 commit comments

Comments
 (0)