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.9KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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. <Match>
  12. <Class name="org.eclipse.jgit.internal.storage.pack.PackOutputStream" />
  13. <Method name="writeHeader" />
  14. <Bug pattern="NS_DANGEROUS_NON_SHORT_CIRCUIT" />
  15. </Match>
  16. <!-- Silence ignoring return value of mkdirs -->
  17. <Match>
  18. <Class name="org.eclipse.jgit.dircache.DirCacheCheckout" />
  19. <Method name="checkout" />
  20. <Bug pattern="RV_RETURN_VALUE_IGNORED_BAD_PRACTICE" />
  21. </Match>
  22. <!-- Silence the construction of our magic String instance.
  23. -->
  24. <Match>
  25. <Class name="org.eclipse.jgit.lib.Config" />
  26. <Bug pattern="DM_STRING_VOID_CTOR"/>
  27. </Match>
  28. <Match>
  29. <Class name="org.eclipse.jgit.lib.Config" />
  30. <Method name="isMissing" />
  31. <Bug pattern="ES_COMPARING_PARAMETER_STRING_WITH_EQ"/>
  32. </Match>
  33. <Match>
  34. <Class name="org.eclipse.jgit.transport.PacketLineIn" />
  35. <Method name="isDelimiter" />
  36. <Bug pattern="ES_COMPARING_PARAMETER_STRING_WITH_EQ"/>
  37. </Match>
  38. <Match>
  39. <Class name="org.eclipse.jgit.transport.PacketLineIn" />
  40. <Method name="isEnd" />
  41. <Bug pattern="ES_COMPARING_PARAMETER_STRING_WITH_EQ"/>
  42. </Match>
  43. <!-- Silence comparison of string by == or !=. This class is built
  44. only to provide compare of string values, we won't make a mistake
  45. here with == assuming .equals() style equality.
  46. -->
  47. <Match>
  48. <Class name="org.eclipse.jgit.util.StringUtils" />
  49. <Bug pattern="ES_COMPARING_PARAMETER_STRING_WITH_EQ" />
  50. </Match>
  51. <!-- We want complete control over clone behavior and
  52. don't want to use Object's clone implementation.
  53. -->
  54. <Match>
  55. <Bug pattern="CN_IMPLEMENTS_CLONE_BUT_NOT_CLONEABLE" />
  56. </Match>
  57. <!-- blockIndex is initialized to 0 automatically.
  58. -->
  59. <Match>
  60. <Class name="org.eclipse.jgit.util.TemporaryBuffer$BlockInputStream" />
  61. <Bug pattern="UR_UNINIT_READ" />
  62. </Match>
  63. <!-- Silence returning null for Boolean return type -->
  64. <Match>
  65. <Class name="org.eclipse.jgit.util.StringUtils" />
  66. <Method name="toBooleanOrNull" />
  67. <Bug pattern="NP_BOOLEAN_RETURN_NULL" />
  68. </Match>
  69. <Match>
  70. <Class name="org.eclipse.jgit.ignore.IgnoreNode" />
  71. <Method name="checkIgnored" />
  72. <Bug pattern="NP_BOOLEAN_RETURN_NULL" />
  73. </Match>
  74. <!-- Transport initialization works like this -->
  75. <Match>
  76. <Class name="org.eclipse.jgit.transport.Transport" />
  77. <Bug pattern="IC_SUPERCLASS_USES_SUBCLASS_DURING_INITIALIZATION" />
  78. </Match>
  79. </FindBugsFilter>