Ref: add new static analyser rule: bestpractices.xml/UnusedAssignment

This commit is contained in:
Laurent Clouet
2024-06-06 01:05:27 +00:00
parent fd33b6d666
commit 1b3cf096d1
8 changed files with 20 additions and 29 deletions

View File

@@ -48,9 +48,8 @@ public class Windows extends OS {
@Override public Process exec(List<String> command, Map<String, String> env) throws IOException {
// disable a popup because the renderer might crash (seg fault)
Kernel32Lib kernel32lib = null;
try {
kernel32lib = (Kernel32Lib) Native.load(Kernel32Lib.path, Kernel32Lib.class);
Kernel32Lib kernel32lib = (Kernel32Lib) Native.load(Kernel32Lib.path, Kernel32Lib.class);
kernel32lib.SetErrorMode(Kernel32Lib.SEM_NOGPFAULTERRORBOX);
}
catch (UnsatisfiedLinkError e) {