Skip to content

Commit

Permalink
8286311: remove boilerplate from use of runTests
Browse files Browse the repository at this point in the history
Reviewed-by: hannesw
  • Loading branch information
jonathan-gibbons committed Dec 22, 2022
1 parent 5e2de89 commit 2294f22
Show file tree
Hide file tree
Showing 269 changed files with 559 additions and 559 deletions.
2 changes: 1 addition & 1 deletion test/langtools/jdk/javadoc/doclet/5093723/T5093723.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
public class T5093723 extends JavadocTester {

public static void main(String... args) throws Exception {
T5093723 tester = new T5093723();
var tester = new T5093723();
tester.runTests();
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2002, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2002, 2022, 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 @@ -36,7 +36,7 @@
public class AccessAsciiArt extends JavadocTester {

public static void main(String... args) throws Exception {
AccessAsciiArt tester = new AccessAsciiArt();
var tester = new AccessAsciiArt();
tester.runTests();
}

Expand Down
4 changes: 2 additions & 2 deletions test/langtools/jdk/javadoc/doclet/AccessH1/AccessH1.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2002, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2002, 2022, 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 @@ -37,7 +37,7 @@
public class AccessH1 extends JavadocTester {

public static void main(String... args) throws Exception {
AccessH1 tester = new AccessH1();
var tester = new AccessH1();
tester.runTests();
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2002, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2002, 2022, 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 @@ -36,7 +36,7 @@
public class AccessSkipNav extends JavadocTester {

public static void main(String... args) throws Exception {
AccessSkipNav tester = new AccessSkipNav();
var tester = new AccessSkipNav();
tester.runTests();
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2002, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2002, 2022, 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 @@ -40,7 +40,7 @@ public class AccessSummary extends JavadocTester {
* @throws Exception if the test fails
*/
public static void main(String... args) throws Exception {
AccessSummary tester = new AccessSummary();
var tester = new AccessSummary();
tester.runTests();
}

Expand Down
4 changes: 2 additions & 2 deletions test/langtools/jdk/javadoc/doclet/AuthorDD/AuthorDD.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2002, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2002, 2022, 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 @@ -39,7 +39,7 @@
public class AuthorDD extends JavadocTester {

public static void main(String... args) throws Exception {
AuthorDD tester = new AuthorDD();
var tester = new AuthorDD();
tester.runTests();
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2002, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2002, 2022, 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 @@ -43,7 +43,7 @@
public class DocRootSlash extends JavadocTester {

public static void main(String... args) throws Exception {
DocRootSlash tester = new DocRootSlash();
var tester = new DocRootSlash();
tester.runTests();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

public class DocTest extends JavadocTester {
public static void main(String... args) throws Exception {
DocTest tester = new DocTest();
var tester = new DocTest();
tester.runTests();
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2002, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2002, 2022, 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 @@ -37,7 +37,7 @@
public class JavascriptWinTitle extends JavadocTester {

public static void main(String... args) throws Exception {
JavascriptWinTitle tester = new JavascriptWinTitle();
var tester = new JavascriptWinTitle();
tester.runTests();
}

Expand Down
4 changes: 2 additions & 2 deletions test/langtools/jdk/javadoc/doclet/MetaTag/MetaTag.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2002, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2002, 2022, 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 @@ -45,7 +45,7 @@ public class MetaTag extends JavadocTester {
* @throws Exception if the test fails
*/
public static void main(String... args) throws Exception {
MetaTag tester = new MetaTag();
var tester = new MetaTag();
tester.runTests();
}

Expand Down
4 changes: 2 additions & 2 deletions test/langtools/jdk/javadoc/doclet/T6735320/T6735320.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2011, 2022, 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 @@ -36,7 +36,7 @@
public class T6735320 extends JavadocTester {

public static void main(String... args) throws Exception {
T6735320 tester = new T6735320();
var tester = new T6735320();
tester.runTests();
}

Expand Down
4 changes: 2 additions & 2 deletions test/langtools/jdk/javadoc/doclet/ValidHtml/ValidHtml.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2002, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2002, 2022, 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 @@ -39,7 +39,7 @@
public class ValidHtml extends JavadocTester {

public static void main(String... args) throws Exception {
ValidHtml tester = new ValidHtml();
var tester = new ValidHtml();
tester.runTests();
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2002, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2002, 2022, 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 @@ -40,7 +40,7 @@
public class VersionNumber extends JavadocTester {

public static void main(String... args) throws Exception {
VersionNumber tester = new VersionNumber();
var tester = new VersionNumber();
tester.runTests();
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2002, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2002, 2022, 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 @@ -39,7 +39,7 @@
public class WindowTitles extends JavadocTester {

public static void main(String... args) throws Exception {
WindowTitles tester = new WindowTitles();
var tester = new WindowTitles();
tester.runTests();
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2002, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2002, 2022, 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 @@ -35,7 +35,7 @@
public class TestConstantValuesDriver extends JavadocTester {

public static void main(String... args) throws Exception {
TestConstantValuesDriver tester = new TestConstantValuesDriver();
var tester = new TestConstantValuesDriver();
tester.runTests();
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2002, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2002, 2022, 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 @@ -35,7 +35,7 @@
public class TestDupThrowsTags extends JavadocTester {

public static void main(String... args) throws Exception {
TestDupThrowsTags tester = new TestDupThrowsTags();
var tester = new TestDupThrowsTags();
tester.runTests();
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2002, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2002, 2022, 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 @@ -36,7 +36,7 @@
public class TestAbsLinkPath extends JavadocTester {

public static void main(String... args) throws Exception {
TestAbsLinkPath tester = new TestAbsLinkPath();
var tester = new TestAbsLinkPath();
tester.runTests();
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2012, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2012, 2022, 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 @@ -37,7 +37,7 @@
public class TestAbstractMethod extends JavadocTester {

public static void main(String... args) throws Exception {
TestAbstractMethod tester = new TestAbstractMethod();
var tester = new TestAbstractMethod();
tester.runTests();
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2013, 2022, 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 @@ -42,8 +42,8 @@ public class TestAnchorNames extends JavadocTester {

public final ToolBox tb;
public static void main(String... args) throws Exception {
TestAnchorNames tester = new TestAnchorNames();
tester.runTests(m -> new Object[] { Paths.get(m.getName()) });
var tester = new TestAnchorNames();
tester.runTests();
}

public TestAnchorNames() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2009, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2009, 2022, 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 @@ -37,7 +37,7 @@
public class TestAnnotationOptional extends JavadocTester {

public static void main(String... args) throws Exception {
TestAnnotationOptional tester = new TestAnnotationOptional();
var tester = new TestAnnotationOptional();
tester.runTests();
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2004, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2004, 2022, 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 @@ -38,7 +38,7 @@
public class TestAnnotationTypes extends JavadocTester {

public static void main(String... args) throws Exception {
TestAnnotationTypes tester = new TestAnnotationTypes();
var tester = new TestAnnotationTypes();
tester.runTests();
}

Expand Down
4 changes: 2 additions & 2 deletions test/langtools/jdk/javadoc/doclet/testAuthor/TestAuthor.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2022, 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 @@ -42,7 +42,7 @@
public class TestAuthor extends JavadocTester {

public static void main(String... args) throws Exception {
TestAuthor tester = new TestAuthor();
var tester = new TestAuthor();
tester.runTests();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
public class TestAutoHeaderId extends JavadocTester {

public static void main(String... args) throws Exception {
TestAutoHeaderId tester = new TestAutoHeaderId();
var tester = new TestAutoHeaderId();
tester.runTests();
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2019, 2022, 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 @@ -50,8 +50,8 @@ public class TestAutoLoadTaglets extends JavadocTester {
final ToolBox tb;

public static void main(String... args) throws Exception {
TestAutoLoadTaglets tester = new TestAutoLoadTaglets();
tester.runTests(m -> new Object[]{Paths.get(m.getName())});
var tester = new TestAutoLoadTaglets();
tester.runTests();
}

TestAutoLoadTaglets() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2002, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2002, 2022, 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 @@ -37,7 +37,7 @@
public class TestBackSlashInLink extends JavadocTester {

public static void main(String... args) throws Exception {
TestBackSlashInLink tester = new TestBackSlashInLink();
var tester = new TestBackSlashInLink();
tester.runTests();
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2022, 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 @@ -36,7 +36,7 @@
public class TestBadHtml extends JavadocTester {

public static void main(String... args) throws Exception {
TestBadHtml tester = new TestBadHtml();
var tester = new TestBadHtml();
tester.runTests();
}

Expand Down
Loading

0 comments on commit 2294f22

Please sign in to comment.