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

7
.codacy.yml Normal file
View file

@ -0,0 +1,7 @@
---
exclude_paths:
- 'buildSrc/**'
- '*/test/**'
- '*/test-resources/**'
- 'misc/stylesheet.css'

View file

@ -1,4 +1,5 @@
[![Java CI with Gradle](https://github.com/mnlipp/VM-Operator/actions/workflows/gradle.yml/badge.svg)](https://github.com/mnlipp/VM-Operator/actions/workflows/gradle.yml)
[![Java CI with Gradle](https://github.com/mnlipp/VM-Operator/actions/workflows/gradle.yml/badge.svg)](https://github.com/mnlipp/VM-Operator/actions/workflows/gradle.yml)
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/2277842dac894de4b663c6aa2779077e)](https://app.codacy.com/gh/mnlipp/VM-Operator/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
# Run Qemu in Kubernetes Pods

View file

@ -23,7 +23,7 @@ package org.jdrupes.vmoperator.runner.qemu;
*/
/* default */ class StateController {
private Runner runner;
private final Runner runner;
/**
* The state.

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();
}