Fix codacy issues.

This commit is contained in:
Michael Lipp 2023-06-05 20:56:35 +02:00
parent c166e35de0
commit 716ff7e372
4 changed files with 20 additions and 2 deletions

View file

@ -20,9 +20,16 @@ package org.jdrupes.vmoperator.util;
import java.util.logging.LogManager;
/**
* A logging manager that isn't disabled by a shutdown hook.
*/
public class LongLoggingManager extends LogManager {
private static LongLoggingManager instance;
/**
* Instantiates a new long logging manager.
*/
@SuppressWarnings("PMD.AssignmentToNonFinalStatic")
public LongLoggingManager() {
instance = this;
}
@ -36,6 +43,9 @@ public class LongLoggingManager extends LogManager {
super.reset();
}
/**
* Reset finally.
*/
public static void resetFinally() {
instance.reset0();
}