8250221: Address use of default constructors in java.logging

Reviewed-by: lancea
This commit is contained in:
Joe Darcy 2020-07-23 11:26:23 -07:00
parent 6e198fec0b
commit bb6647c845
2 changed files with 11 additions and 1 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2001, 2004, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2001, 2020, 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
@ -39,6 +39,11 @@ package java.util.logging;
public class ErrorManager {
private boolean reported = false;
/**
* Create an {@code ErrorManager}.
*/
public ErrorManager() {}
/*
* We declare standard error codes for important categories of errors.
*/

View file

@ -65,6 +65,11 @@ public class SimpleFormatter extends Formatter {
private final String format =
SurrogateLogger.getSimpleFormat(SimpleFormatter::getLoggingProperty);
/**
* Create a {@code SimpleFormatter}.
*/
public SimpleFormatter() {}
/**
* Format the given LogRecord.
* <p>