# HG changeset patch # User darcy # Date 1568243169 25200 # Node ID c0cc906cb29c137c9ffb54ba6dc6dbf9fb2811bc # Parent 91bc4d6c4054b0c35fc3f811f375af8d262422ca 8230734: Remove default constructors from java.compiler Reviewed-by: jjg diff -r 91bc4d6c4054 -r c0cc906cb29c src/java.compiler/share/classes/javax/tools/DiagnosticCollector.java --- a/src/java.compiler/share/classes/javax/tools/DiagnosticCollector.java Wed Sep 11 13:28:09 2019 -0700 +++ b/src/java.compiler/share/classes/javax/tools/DiagnosticCollector.java Wed Sep 11 16:06:09 2019 -0700 @@ -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 @@ private List> diagnostics = Collections.synchronizedList(new ArrayList>()); + /** + * Creates a new instance of DiagnosticCollector. + */ + public DiagnosticCollector() {} + public void report(Diagnostic diagnostic) { Objects.requireNonNull(diagnostic); diagnostics.add(diagnostic); diff -r 91bc4d6c4054 -r c0cc906cb29c src/java.compiler/share/classes/javax/tools/ToolProvider.java --- a/src/java.compiler/share/classes/javax/tools/ToolProvider.java Wed Sep 11 13:28:09 2019 -0700 +++ b/src/java.compiler/share/classes/javax/tools/ToolProvider.java Wed Sep 11 16:06:09 2019 -0700 @@ -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 @@ -45,6 +45,12 @@ 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. *

The file manager returned by calling