src/java.compiler/share/classes/javax/tools/DiagnosticCollector.java
changeset 58091 c0cc906cb29c
parent 47216 71c04702a3d5
--- 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<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);