java-runtime-decompiler/removeMultilineSpotbugs.patch
Jiri 4bf0872e61 moved to jrd 7.1
todo:
  asm7/g/procyonassembler wrappers
  new launchers
  new classpath (diff, cplc api...)
  ?
2023-03-15 10:36:40 +01:00

52 lines
2.3 KiB
Diff

--- a/runtime-decompiler/src/main/java/org/jrd/backend/core/DecompilerRequestReceiver.java
+++ a/runtime-decompiler/src/main/java/org/jrd/backend/core/XDecompilerRequestReceiver.java
@@ -262,10 +262,6 @@
private static class ClassesComparator implements Comparator<ClassInfo>, Serializable {
@SuppressWarnings({"ReturnCount", "CyclomaticComplexity"}) // comparator syntax
- @SuppressFBWarnings(
- value = "NP_NULL_ON_SOME_PATH_MIGHT_BE_INFEASIBLE",
- justification = "False report of possible NP dereference, despite testing both o1 & o2 for nullness."
- )
@Override
public int compare(ClassInfo c1, ClassInfo c2) {
if (c1 == null && c2 == null) {
--- a/runtime-decompiler/src/main/java/org/jrd/backend/data/VmInfo.java
+++ a/runtime-decompiler/src/main/java/org/jrd/backend/data/XVmInfo.java
@@ -112,10 +112,6 @@
this.type = local;
}
- @SuppressFBWarnings(
- value = "NP_LOAD_OF_KNOWN_NULL_VALUE",
- justification = "Classpath is only used for FS VMs, in other cases getCp() does not get called"
- )
public void setCp(List<File> cp) {
if (cp == null) {
this.cp = null;
--- a/runtime-decompiler/src/test/java/org/jrd/frontend/frame/plugins/FileSelectorArrayRowTest.java
+++ a/runtime-decompiler/src/test/java/org/jrd/frontend/frame/plugins/XFileSelectorArrayRowTest.java
@@ -11,9 +11,6 @@
import java.io.File;
import java.nio.file.Paths;
-@SuppressFBWarnings(
- value = "DMI_HARDCODED_ABSOLUTE_FILENAME", justification = "Hardcoded paths aren't used for manipulating with an actual filesystem."
-)
class FileSelectorArrayRowTest {
@BeforeAll
static void setup() {
--- a/runtime-decompiler/src/main/java/org/jrd/backend/data/cli/utils/CompileArguments.java
+++ a/runtime-decompiler/src/main/java/org/jrd/backend/data/cli/utils/CompileArguments.java
@@ -77,10 +77,6 @@
return new RuntimeCompilerConnector.JrdClassesProvider(localVmInfo, vmManager);
}
- @SuppressFBWarnings(
- value = "NP_LOAD_OF_KNOWN_NULL_VALUE",
- justification = "Classpath is only used for FS VMs, in other cases getCp() does not get called"
- )
/**
* Warning, possibly unused, rotten code.
*/