findbugs-exclude.xml 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. <!-- same code as in FileSystem is triggering the same warning. -->
  17. <Match>
  18. <Class name="org.apache.hadoop.fs.s3native.S3xLoginHelper" />
  19. <Method name="checkPath" />
  20. <Bug pattern="ES_COMPARING_STRINGS_WITH_EQ" />
  21. </Match>
  22. <!-- Redundant null check makes code clearer, future-proof here. -->
  23. <Match>
  24. <Class name="org.apache.hadoop.fs.s3a.S3AFileSystem" />
  25. <Method name="s3Exists" />
  26. <Bug pattern="RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE" />
  27. </Match>
  28. <!--
  29. This extends the serializable S3Object, so findbug checks
  30. serializability. It is never serialized however, so its
  31. warnings are false positives.
  32. -->
  33. <Match>
  34. <Class name="org.apache.hadoop.fs.s3a.InconsistentS3Object" />
  35. <Bug pattern="SE_TRANSIENT_FIELD_NOT_RESTORED" />
  36. </Match>
  37. <Match>
  38. <Class name="org.apache.hadoop.fs.s3a.InconsistentS3Object" />
  39. <Bug pattern="SE_NO_SERIALVERSIONID" />
  40. </Match>
  41. <!--
  42. findbugs gets confused by lambda expressions in synchronized methods
  43. and considers references to fields to be unsynchronized.
  44. As you can't disable the methods individually, we have to disable
  45. them for the entire class.
  46. -->
  47. <Match>
  48. <Class name="org.apache.hadoop.fs.s3a.S3AInputStream"/>
  49. <Bug pattern="IS2_INCONSISTENT_SYNC"/>
  50. </Match>
  51. <!--
  52. findbugs reporting RV ignored. Not true.
  53. "Return value of S3AReadOpContext.getReadInvoker() ignored,
  54. but method has no side effect"
  55. -->
  56. <Match>
  57. <Class name="org.apache.hadoop.fs.s3a.S3AInputStream"/>
  58. <Method name="reopen"/>
  59. <Bug pattern="RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT"/>
  60. </Match>
  61. </FindBugsFilter>