Skip to content

Commit

Permalink
8250221: Address use of default constructors in java.logging
Browse files Browse the repository at this point in the history
Reviewed-by: lancea
  • Loading branch information
jddarcy committed Jul 23, 2020
1 parent 6e198fe commit bb6647c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
@@ -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
Expand Down Expand Up @@ -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.
*/
Expand Down
Expand Up @@ -65,6 +65,11 @@ static String getLoggingProperty(String name) {
private final String format =
SurrogateLogger.getSimpleFormat(SimpleFormatter::getLoggingProperty);

/**
* Create a {@code SimpleFormatter}.
*/
public SimpleFormatter() {}

/**
* Format the given LogRecord.
* <p>
Expand Down

0 comments on commit bb6647c

Please sign in to comment.