findbugs-exclude.xml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. <!-- Ignore some irrelevant serialization warnings -->
  17. <Match>
  18. <Class name="org.apache.hadoop.examples.SecondarySort$FirstGroupingComparator" />
  19. <Bug pattern="SE_COMPARATOR_SHOULD_BE_SERIALIZABLE" />
  20. </Match>
  21. <Match>
  22. <Class name="org.apache.hadoop.examples.SecondarySort$IntPair$Comparator" />
  23. <Bug pattern="SE_COMPARATOR_SHOULD_BE_SERIALIZABLE" />
  24. </Match>
  25. <!-- Ignore the irrelevant resource cleanup warnings-->
  26. <Match>
  27. <Class name="org.apache.hadoop.examples.DBCountPageView" />
  28. <Method name="verify" />
  29. <Bug pattern="OBL_UNSATISFIED_OBLIGATION" />
  30. </Match>
  31. <!-- Ignore the irrelevant closure warnings-->
  32. <Match>
  33. <Class name="org.apache.hadoop.examples.dancing.Pentomino$Piece" />
  34. <Bug pattern="EI_EXPOSE_REP2" />
  35. </Match>
  36. <!-- Ignore the irrelevant package protection warnings-->
  37. <Match>
  38. <Class name="org.apache.hadoop.examples.dancing.Pentomino" />
  39. <Or>
  40. <Field name="fourRotations" />
  41. <Field name="oneRotation" />
  42. <Field name="twoRotations" />
  43. </Or>
  44. <Bug pattern="MS_PKGPROTECT" />
  45. </Match>
  46. <!-- Ignore the irrelevant right shift warnings, as only positive integers are given as input-->
  47. <Match>
  48. <Class name="org.apache.hadoop.examples.terasort.Unsigned16" />
  49. <Method name="getHexDigit" />
  50. <Bug pattern="ICAST_QUESTIONABLE_UNSIGNED_RIGHT_SHIFT" />
  51. </Match>
  52. </FindBugsFilter>