Skip to content

Commit bb6647c

Browse files
committed
8250221: Address use of default constructors in java.logging
Reviewed-by: lancea
1 parent 6e198fe commit bb6647c

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

src/java.logging/share/classes/java/util/logging/ErrorManager.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2001, 2004, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2001, 2020, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -39,6 +39,11 @@
3939
public class ErrorManager {
4040
private boolean reported = false;
4141

42+
/**
43+
* Create an {@code ErrorManager}.
44+
*/
45+
public ErrorManager() {}
46+
4247
/*
4348
* We declare standard error codes for important categories of errors.
4449
*/

src/java.logging/share/classes/java/util/logging/SimpleFormatter.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,11 @@ static String getLoggingProperty(String name) {
6565
private final String format =
6666
SurrogateLogger.getSimpleFormat(SimpleFormatter::getLoggingProperty);
6767

68+
/**
69+
* Create a {@code SimpleFormatter}.
70+
*/
71+
public SimpleFormatter() {}
72+
6873
/**
6974
* Format the given LogRecord.
7075
* <p>

0 commit comments

Comments
 (0)