findbugs-exclude.xml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <!--
  2. Licensed to the Apache Software Foundation (ASF) under one or more
  3. contributor license agreements. See the NOTICE file distributed with
  4. this work for additional information regarding copyright ownership.
  5. The ASF licenses this file to You under the Apache License, Version 2.0
  6. (the "License"); you may not use this file except in compliance with
  7. the License. You may obtain a copy of the License at
  8. http://www.apache.org/licenses/LICENSE-2.0
  9. Unless required by applicable law or agreed to in writing, software
  10. distributed under the License is distributed on an "AS IS" BASIS,
  11. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. See the License for the specific language governing permissions and
  13. limitations under the License.
  14. -->
  15. <FindBugsFilter>
  16. <!-- It is okay to skip up to end of file. No need to check return value. -->
  17. <Match>
  18. <Class name="org.apache.hadoop.fs.azure.AzureNativeFileSystemStore" />
  19. <Method name="retrieve" />
  20. <Bug pattern="SR_NOT_CHECKED" />
  21. <Priority value="2" />
  22. </Match>
  23. <!-- Returning fully loaded array to iterate through is a convenience
  24. and helps performance. -->
  25. <Match>
  26. <Class name="org.apache.hadoop.fs.azure.NativeAzureFileSystem$FolderRenamePending" />
  27. <Method name="getFiles" />
  28. <Bug pattern="EI_EXPOSE_REP" />
  29. <Priority value="2" />
  30. </Match>
  31. <!-- Need to start keep-alive thread for SelfRenewingLease in constructor. -->
  32. <Match>
  33. <Class name="org.apache.hadoop.fs.azure.SelfRenewingLease" />
  34. <Bug pattern="SC_START_IN_CTOR" />
  35. <Priority value="2" />
  36. </Match>
  37. <!-- Using a key set iterator is fine because this is not a performance-critical
  38. method. -->
  39. <Match>
  40. <Class name="org.apache.hadoop.fs.azure.PageBlobOutputStream" />
  41. <Method name="logAllStackTraces" />
  42. <Bug pattern="WMI_WRONG_MAP_ITERATOR" />
  43. <Priority value="2" />
  44. </Match>
  45. </FindBugsFilter>