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 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. </FindBugsFilter>