8230734: Remove default constructors from java.compiler
Reviewed-by: jjg
This commit is contained in:
parent
e90970b67b
commit
a8ea6b279a
src/java.compiler/share/classes/javax/tools
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2006, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2006, 2019, 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
|
||||
@ -43,6 +43,11 @@ public final class DiagnosticCollector<S> implements DiagnosticListener<S> {
|
||||
private List<Diagnostic<? extends S>> diagnostics =
|
||||
Collections.synchronizedList(new ArrayList<Diagnostic<? extends S>>());
|
||||
|
||||
/**
|
||||
* Creates a new instance of DiagnosticCollector.
|
||||
*/
|
||||
public DiagnosticCollector() {}
|
||||
|
||||
public void report(Diagnostic<? extends S> diagnostic) {
|
||||
Objects.requireNonNull(diagnostic);
|
||||
diagnostics.add(diagnostic);
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2005, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2005, 2019, 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
|
||||
@ -44,6 +44,12 @@ public class ToolProvider {
|
||||
private static final String systemJavaCompilerModule = "jdk.compiler";
|
||||
private static final String systemJavaCompilerName = "com.sun.tools.javac.api.JavacTool";
|
||||
|
||||
/**
|
||||
* Do not call.
|
||||
*/
|
||||
@Deprecated(forRemoval=true, since="14")
|
||||
public ToolProvider() {}
|
||||
|
||||
/**
|
||||
* Returns the Java™ programming language compiler provided
|
||||
* with this platform.
|
||||
|
Loading…
x
Reference in New Issue
Block a user