Skip to content

Commit

Permalink
8264809: test-lib fails to build due to some warnings in ASN1Formatte…
Browse files Browse the repository at this point in the history
…r and jfr

Reviewed-by: rriggs
  • Loading branch information
DamonFool committed Apr 8, 2021
1 parent a863ab6 commit 88eb291
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions test/lib/jdk/test/lib/hexdump/ASN1Formatter.java
Expand Up @@ -151,6 +151,7 @@ public void annotate(DataInputStream in, Appendable out) throws IOException {
* @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) {
Expand Down
4 changes: 2 additions & 2 deletions test/lib/jdk/test/lib/jfr/GCHelper.java
@@ -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
Expand Down Expand Up @@ -333,7 +333,7 @@ public static List<GcBatch> createFromEvents(List<RecordedEvent> events) throws
// 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);
Expand Down
4 changes: 2 additions & 2 deletions test/lib/jdk/test/lib/jfr/SimpleEventHelper.java
@@ -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
Expand Down Expand Up @@ -77,7 +77,7 @@ public static void verifyContains(List<RecordedEvent> events, int ... ids) throw
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));
Expand Down

1 comment on commit 88eb291

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.