You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

FindBugsExcludeFilter.xml 2.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <FindBugsFilter>
  3. <!-- Silence PackFile.mmap calls GC, we need to force it to remove stale
  4. memory mapped segments if the JVM heap is out of address space.
  5. -->
  6. <Match>
  7. <Class name="org.eclipse.jgit.storage.file.PackFile" />
  8. <Method name="mmap" />
  9. <Bug pattern="DM_GC" />
  10. </Match>
  11. <!-- Silence ignoring return value of mkdirs -->
  12. <Match>
  13. <Class name="org.eclipse.jgit.dircache.DirCacheCheckout" />
  14. <Method name="checkout" />
  15. <Bug pattern="RV_RETURN_VALUE_IGNORED_BAD_PRACTICE" />
  16. </Match>
  17. <!-- Silence the construction of our magic String instance.
  18. -->
  19. <Match>
  20. <Class name="org.eclipse.jgit.lib.Config" />
  21. <Bug pattern="DM_STRING_VOID_CTOR"/>
  22. </Match>
  23. <!-- Silence comparison of string by == or !=. This class is built
  24. only to provide compare of string values, we won't make a mistake
  25. here with == assuming .equals() style equality.
  26. -->
  27. <Match>
  28. <Class name="org.eclipse.jgit.util.StringUtils" />
  29. <Bug pattern="ES_COMPARING_PARAMETER_STRING_WITH_EQ" />
  30. </Match>
  31. <!-- We want complete control over clone behavior and
  32. don't want to use Object's clone implementation.
  33. -->
  34. <Match>
  35. <Bug pattern="CN_IMPLEMENTS_CLONE_BUT_NOT_CLONEABLE" />
  36. </Match>
  37. <!-- blockIndex is initialized to 0 automatically.
  38. -->
  39. <Match>
  40. <Class name="org.eclipse.jgit.util.TemporaryBuffer$BlockInputStream" />
  41. <Bug pattern="UR_UNINIT_READ" />
  42. </Match>
  43. <!-- Silence returning null for Boolean return type -->
  44. <Match>
  45. <Class name="org.eclipse.jgit.util.StringUtils" />
  46. <Method name="toBooleanOrNull" />
  47. <Bug pattern="NP_BOOLEAN_RETURN_NULL" />
  48. </Match>
  49. <!-- Transport initialization works like this -->
  50. <Match>
  51. <Class name="org.eclipse.jgit.transport.Transport" />
  52. <Bug pattern="IC_SUPERCLASS_USES_SUBCLASS_DURING_INITIALIZATION" />
  53. </Match>
  54. </FindBugsFilter>