mirror of
https://github.com/openjdk/jdk.git
synced 2026-07-13 12:38:07 +00:00
8264809: test-lib fails to build due to some warnings in ASN1Formatter and jfr
Reviewed-by: rriggs
This commit is contained in:
parent
a863ab69d3
commit
88eb2919f5
@ -151,6 +151,7 @@ public class ASN1Formatter implements HexPrinter.Formatter {
|
||||
* @param prefix a string to prefix each line of output, used for indentation
|
||||
* @throws IOException if an I/O error occurs
|
||||
*/
|
||||
@SuppressWarnings("fallthrough")
|
||||
private int annotate(DataInputStream in, Appendable out, int available, String prefix) throws IOException {
|
||||
int origAvailable = available;
|
||||
while (available != 0 || origAvailable < 0) {
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2013, 2021, 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
|
||||
@ -333,7 +333,7 @@ public class GCHelper {
|
||||
// No existing batch. Create new.
|
||||
currBatch = new GcBatch();
|
||||
batches.add(currBatch);
|
||||
openGcIds.push(new Integer(gcId));
|
||||
openGcIds.push(Integer.valueOf(gcId));
|
||||
}
|
||||
}
|
||||
boolean isEndEvent = currBatch.addEvent(event);
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2018, 2021, 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
|
||||
@ -77,7 +77,7 @@ public class SimpleEventHelper {
|
||||
for (RecordedEvent event : getSimpleEvents(events)) {
|
||||
int id = Events.assertField(event, "id").getValue();
|
||||
System.out.printf("event.id=%d%n", id);
|
||||
missingIds.remove(new Integer(id));
|
||||
missingIds.remove(Integer.valueOf(id));
|
||||
}
|
||||
if (!missingIds.isEmpty()) {
|
||||
missingIds.forEach(id -> System.out.println("Missing MyEvent with id " + id));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user