Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
Reviewed
Description
findbugs reports the following medium priority warnings for some inner class in the generated class ./hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/protobuf/HadoopRpcProtos.java:
- SE_BAD_FIELD_STORE: Non-serializable value stored into instance field of a serializable class
- SE_BAD_FIELD: Non-transient non-serializable instance field in serializable class
- UCF_USELESS_CONTROL_FLOW: Useless control flow
This can be fixed by adding the following findbugs exclude filter:
+ <Match>
+ <!-- protobuf generated code -->
+ <Class name="~org\.apache\.hadoop\.ipc\.protobuf\.HadoopRpcProtos.*"/>
+ </Match>
which will exclude all inner classes of org.apache.hadoop.ipc.protobuf.HadoopRpcProtos