Skip to content

Commit 2604a88

Browse files
committed
8281585: Remove unused imports under test/lib and jtreg/gc
Reviewed-by: dholmes, sspitsyn
1 parent 534e557 commit 2604a88

File tree

60 files changed

+59
-151
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+59
-151
lines changed

test/hotspot/jtreg/gc/TestAllocateHeapAt.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2017, 2022, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -31,11 +31,8 @@
3131
* @run driver gc.TestAllocateHeapAt
3232
*/
3333

34-
import jdk.test.lib.JDKToolFinder;
3534
import jdk.test.lib.process.ProcessTools;
3635
import jdk.test.lib.process.OutputAnalyzer;
37-
import java.util.ArrayList;
38-
import java.util.Collections;
3936

4037
public class TestAllocateHeapAt {
4138
public static void main(String args[]) throws Exception {

test/hotspot/jtreg/gc/TestAllocateHeapAtMultiple.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2017, 2022, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -31,7 +31,6 @@
3131
* @run driver/timeout=360 gc.TestAllocateHeapAtMultiple
3232
*/
3333

34-
import jdk.test.lib.JDKToolFinder;
3534
import jdk.test.lib.process.ProcessTools;
3635
import jdk.test.lib.process.OutputAnalyzer;
3736
import java.util.ArrayList;

test/hotspot/jtreg/gc/TestCardTablePageCommits.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2014, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2014, 2022, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -25,7 +25,6 @@
2525

2626
import jdk.test.lib.process.ProcessTools;
2727
import jdk.test.lib.process.OutputAnalyzer;
28-
import jdk.test.lib.Platform;
2928

3029
/*
3130
* @test TestCardTablePageCommits

test/hotspot/jtreg/gc/TestSmallHeap.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2014, 2021, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2014, 2022, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -61,8 +61,6 @@
6161
import jdk.test.lib.process.OutputAnalyzer;
6262
import jdk.test.lib.process.ProcessTools;
6363

64-
import java.util.LinkedList;
65-
6664
import jtreg.SkippedException;
6765
import sun.hotspot.WhiteBox;
6866
import sun.hotspot.gc.GC;

test/hotspot/jtreg/gc/arguments/TestAggressiveHeap.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2017, 2021, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2017, 2022, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -39,7 +39,6 @@
3939
import javax.management.ObjectName;
4040

4141
import jdk.test.lib.process.OutputAnalyzer;
42-
import jdk.test.lib.process.ProcessTools;
4342
import jtreg.SkippedException;
4443

4544
public class TestAggressiveHeap {

test/hotspot/jtreg/gc/arguments/TestArrayAllocatorMallocLimit.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2014, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2014, 2022, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -37,7 +37,6 @@
3737

3838
import jdk.test.lib.Asserts;
3939
import jdk.test.lib.process.OutputAnalyzer;
40-
import jdk.test.lib.process.ProcessTools;
4140
import java.math.BigInteger;
4241

4342
public class TestArrayAllocatorMallocLimit {

test/hotspot/jtreg/gc/arguments/TestCompressedClassFlags.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2013, 2022, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -24,7 +24,6 @@
2424
package gc.arguments;
2525

2626
import jdk.test.lib.process.OutputAnalyzer;
27-
import jdk.test.lib.process.ProcessTools;
2827
import jdk.test.lib.Platform;
2928

3029
/*

test/hotspot/jtreg/gc/arguments/TestG1ConcMarkStepDurationMillis.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2015, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2015, 2022, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -34,7 +34,6 @@
3434
* @run driver gc.arguments.TestG1ConcMarkStepDurationMillis
3535
*/
3636

37-
import jdk.test.lib.process.ProcessTools;
3837
import jdk.test.lib.process.OutputAnalyzer;
3938
import java.util.*;
4039
import java.util.regex.*;

test/hotspot/jtreg/gc/arguments/TestG1ConcRefinementThreads.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2014, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2014, 2022, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -36,7 +36,6 @@
3636
*/
3737

3838
import jdk.test.lib.process.OutputAnalyzer;
39-
import jdk.test.lib.process.ProcessTools;
4039
import java.util.*;
4140
import java.util.regex.*;
4241

test/hotspot/jtreg/gc/arguments/TestG1HeapRegionSize.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2013, 2022, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -43,7 +43,6 @@
4343

4444
import jdk.test.lib.process.OutputAnalyzer;
4545
import jdk.test.lib.Platform;
46-
import jdk.test.lib.process.ProcessTools;
4746

4847
public class TestG1HeapRegionSize {
4948

0 commit comments

Comments
 (0)