Skip to content
This repository has been archived by the owner on Aug 27, 2022. It is now read-only.
/ lanai Public archive

Commit

Permalink
8240524: Remove explicit type argument in test jdk/java/lang/Boolean/…
Browse files Browse the repository at this point in the history
…MakeBooleanComparable.java

Reviewed-by: clanger, vtewari
  • Loading branch information
Vipin-Sharma authored and RealCLanger committed Mar 11, 2020
1 parent 661c073 commit d778097
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions test/jdk/java/lang/Boolean/GetBoolean.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 1999, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1999, 2020, 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 @@ -28,7 +28,7 @@
*/

public class GetBoolean {
public static void main(String[] args) throws Exception {
public static void main(String[] args) {
Boolean.getBoolean("");
Boolean.getBoolean(null);
}
Expand Down
6 changes: 3 additions & 3 deletions test/jdk/java/lang/Boolean/MakeBooleanComparable.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 2020, 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 @@ -32,9 +32,9 @@
import java.util.*;

public class MakeBooleanComparable {
public static void main(String args[]) {
public static void main(String[] args) {
Random rnd = new Random();
List<Boolean> list = new ArrayList<Boolean>();
List<Boolean> list = new ArrayList<>();
int numFalse = 0;
for (int i = 0; i < 1000; i++) {
boolean element = rnd.nextBoolean();
Expand Down
4 changes: 2 additions & 2 deletions test/jdk/java/lang/Boolean/ParseBoolean.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 2020, 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 @@ -28,7 +28,7 @@
*/

public class ParseBoolean {
public static void main(String[] args) throws Exception {
public static void main(String[] args) {
checkTrue(Boolean.parseBoolean("TRUE"));
checkTrue(Boolean.parseBoolean("true"));
checkTrue(Boolean.parseBoolean("TrUe"));
Expand Down

0 comments on commit d778097

Please sign in to comment.