Description
$ find . -name findbugsXml.xml | xargs -n 1 /opt/findbugs-3.0.1/bin/convertXmlToText -longBugCodes M D NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE NP: Possible null pointer dereference in org.apache.hadoop.examples.pi.Parser.parse(File, Map) due to return value of called method Dereferenced at Parser.java:[line 70] H P DM_BOXED_PRIMITIVE_FOR_COMPARE Bx: Primitive is boxed to call Long.compareTo(Long): use Long.compare(long, long) instead At JVMId.java:[line 101] M B ME_MUTABLE_ENUM_FIELD ME: org.apache.hadoop.mapred.Operation.jobACLNeeded field is public and mutable In Operation.java M B ME_MUTABLE_ENUM_FIELD ME: org.apache.hadoop.mapred.Operation.qACLNeeded field is public and mutable In Operation.java M D UC_USELESS_OBJECT UC: Useless object stored in variable paths of method org.apache.hadoop.mapreduce.v2.hs.HistoryFileManager$HistoryFileInfo.moveToDone() At HistoryFileManager.java:[line 416] M D NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE NP: Possible null pointer dereference in new org.apache.hadoop.mapred.LocalContainerLauncher(AppContext, TaskUmbilicalProtocol, ClassLoader) due to return value of called method Dereferenced at LocalContainerLauncher.java:[line 124] M D NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE NP: Possible null pointer dereference in org.apache.hadoop.mapred.LocalContainerLauncher$EventHandler.relocalize() due to return value of called method Dereferenced at LocalContainerLauncher.java:[line 524] M D NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE NP: Possible null pointer dereference in org.apache.hadoop.mapreduce.v2.app.MRAppMaster.isJobNamePatternMatch(JobConf, String) due to return value of called method Dereferenced at MRAppMaster.java:[line 560]
Attachments
Issue Links
- depends upon
-
MAPREDUCE-6881 Fix warnings from Spotbugs in hadoop-mapreduce
- Resolved
- is a child of
-
HADOOP-17095 findbugs warnings building branch-2.10
- Resolved