Fix codacy issues.
This commit is contained in:
parent
c166e35de0
commit
716ff7e372
4 changed files with 20 additions and 2 deletions
7
.codacy.yml
Normal file
7
.codacy.yml
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
---
|
||||||
|
exclude_paths:
|
||||||
|
- 'buildSrc/**'
|
||||||
|
- '*/test/**'
|
||||||
|
- '*/test-resources/**'
|
||||||
|
- 'misc/stylesheet.css'
|
||||||
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
[](https://github.com/mnlipp/VM-Operator/actions/workflows/gradle.yml)
|
[](https://github.com/mnlipp/VM-Operator/actions/workflows/gradle.yml)
|
||||||
|
[](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
|
# Run Qemu in Kubernetes Pods
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ package org.jdrupes.vmoperator.runner.qemu;
|
||||||
*/
|
*/
|
||||||
/* default */ class StateController {
|
/* default */ class StateController {
|
||||||
|
|
||||||
private Runner runner;
|
private final Runner runner;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The state.
|
* The state.
|
||||||
|
|
|
||||||
|
|
@ -20,9 +20,16 @@ package org.jdrupes.vmoperator.util;
|
||||||
|
|
||||||
import java.util.logging.LogManager;
|
import java.util.logging.LogManager;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A logging manager that isn't disabled by a shutdown hook.
|
||||||
|
*/
|
||||||
public class LongLoggingManager extends LogManager {
|
public class LongLoggingManager extends LogManager {
|
||||||
private static LongLoggingManager instance;
|
private static LongLoggingManager instance;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Instantiates a new long logging manager.
|
||||||
|
*/
|
||||||
|
@SuppressWarnings("PMD.AssignmentToNonFinalStatic")
|
||||||
public LongLoggingManager() {
|
public LongLoggingManager() {
|
||||||
instance = this;
|
instance = this;
|
||||||
}
|
}
|
||||||
|
|
@ -36,6 +43,9 @@ public class LongLoggingManager extends LogManager {
|
||||||
super.reset();
|
super.reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reset finally.
|
||||||
|
*/
|
||||||
public static void resetFinally() {
|
public static void resetFinally() {
|
||||||
instance.reset0();
|
instance.reset0();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue