Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
8240524: Remove explicit type argument in test jdk/java/lang/Boolean/…
…MakeBooleanComparable.java

Reviewed-by: clanger, vtewari
  • Loading branch information
Vipin-Sharma authored and RealCLanger committed Mar 11, 2020
1 parent 661c073 commit d7780973716618b7e88e864c9a04fb262c7a44c2
Showing with 7 additions and 7 deletions.
  1. +2 −2 test/jdk/java/lang/Boolean/GetBoolean.java
  2. +3 −3 test/jdk/java/lang/Boolean/MakeBooleanComparable.java
  3. +2 −2 test/jdk/java/lang/Boolean/ParseBoolean.java
@@ -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
@@ -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);
}
@@ -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
@@ -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();
@@ -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
@@ -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"));

0 comments on commit d778097

Please sign in to comment.