Summary
-------
Add explicit constructors to two classes in `java.logging` using default constructors.
Problem
-------
Default constructors are not recommend for formal API classes.
Solution
--------
Add the elided constructors.
Specification
-------------
--- old/src/java.logging/share/classes/java/util/logging/ErrorManager.java 2020-07-23 10:30:58.570574191 -0700
+++ new/src/java.logging/share/classes/java/util/logging/ErrorManager.java 2020-07-23 10:30:58.126574191 -0700
@@ -39,6 +39,11 @@
public class ErrorManager {
private boolean reported = false;
+ /**
+ * Create an {@code ErrorManager}.
+ */
+ public ErrorManager() {}
+
/*
* We declare standard error codes for important categories of errors.
*/
--- old/src/java.logging/share/classes/java/util/logging/SimpleFormatter.java 2020-07-23 10:30:59.390574191 -0700
+++ new/src/java.logging/share/classes/java/util/logging/SimpleFormatter.java 2020-07-23 10:30:58.942574191 -0700
@@ -66,6 +66,11 @@
SurrogateLogger.getSimpleFormat(SimpleFormatter::getLoggingProperty);
/**
+ * Create a {@code SimpleFormatter}.
+ */
+ public SimpleFormatter() {}
+
+ /**
* Format the given LogRecord.
* <p>
* The formatting can be customized by specifying the format string