This project has retired. For details please refer to its Attic page.
cas-resource – FindBugs Bug Detector Report

FindBugs Bug Detector Report

The following document contains the results of FindBugs

FindBugs Version is 3.0.0

Threshold is

Effort is min

Summary

Classes Bugs Errors Missing Classes
122 30 0 0

org.apache.oodt.cas.resource.batchmgr.XmlRpcBatchMgrFactory

Bug Category Details Line Priority
Unread field: org.apache.oodt.cas.resource.batchmgr.XmlRpcBatchMgrFactory.mon PERFORMANCE URF_UNREAD_FIELD 35 Medium

org.apache.oodt.cas.resource.examples.LongJob

Bug Category Details Line Priority
Boxing/unboxing to parse a primitive org.apache.oodt.cas.resource.examples.LongJob.execute(JobInput) PERFORMANCE DM_BOXED_PRIMITIVE_FOR_PARSING 58 High

org.apache.oodt.cas.resource.jobqueue.FifoMappedJobQueue

Bug Category Details Line Priority
Call to java.util.Vector.equals(String) in org.apache.oodt.cas.resource.jobqueue.FifoMappedJobQueue.promoteKeyValPair(String, String) CORRECTNESS EC_UNRELATED_TYPES 469 High
Possible null pointer dereference of spec in org.apache.oodt.cas.resource.jobqueue.FifoMappedJobQueue.getNextJob() on exception path CORRECTNESS NP_NULL_ON_SOME_PATH_EXCEPTION 240 Medium
Possible null pointer dereference of spec in org.apache.oodt.cas.resource.jobqueue.FifoMappedJobQueue.promoteKeyValPair(String, String) on exception path CORRECTNESS NP_NULL_ON_SOME_PATH_EXCEPTION 469 Medium

org.apache.oodt.cas.resource.jobrepo.XStreamJobRepository

Bug Category Details Line Priority
org.apache.oodt.cas.resource.jobrepo.XStreamJobRepository.addJob(JobSpec) might ignore java.lang.Exception BAD_PRACTICE DE_MIGHT_IGNORE 88 Medium
org.apache.oodt.cas.resource.jobrepo.XStreamJobRepository.getJobById(String) might ignore java.lang.Exception BAD_PRACTICE DE_MIGHT_IGNORE 103 Medium

org.apache.oodt.cas.resource.jobrepo.XStreamJobRepositoryFactory

Bug Category Details Line Priority
Exceptional return value of java.io.File.mkdirs() ignored in org.apache.oodt.cas.resource.jobrepo.XStreamJobRepositoryFactory.createRepository() BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 48 Medium

org.apache.oodt.cas.resource.monitor.AssignmentMonitor

Bug Category Details Line Priority
Sequence of calls to java.util.concurrent.ConcurrentHashMap may not be atomic in org.apache.oodt.cas.resource.monitor.AssignmentMonitor.addNode(ResourceNode) MT_CORRECTNESS AT_OPERATION_SEQUENCE_ON_CONCURRENT_ABSTRACTION 146 Medium

org.apache.oodt.cas.resource.monitor.ganglia.GangliaResourceMonitor

Bug Category Details Line Priority
Boxing/unboxing to parse a primitive org.apache.oodt.cas.resource.monitor.ganglia.GangliaResourceMonitor.createAdapter(Map) PERFORMANCE DM_BOXED_PRIMITIVE_FOR_PARSING 250 High
Integer is incompatible with expected argument type String in org.apache.oodt.cas.resource.monitor.ganglia.GangliaResourceMonitor.getNodeByURL(URL) CORRECTNESS GC_UNRELATED_TYPES 175 Medium

org.apache.oodt.cas.resource.monitor.ganglia.GangliaResourceMonitorFactory

Bug Category Details Line Priority
Boxing/unboxing to parse a primitive org.apache.oodt.cas.resource.monitor.ganglia.GangliaResourceMonitorFactory.createMonitor() PERFORMANCE DM_BOXED_PRIMITIVE_FOR_PARSING 51 High

org.apache.oodt.cas.resource.monitor.utils.MockGmetad

Bug Category Details Line Priority
Boxing/unboxing to parse a primitive org.apache.oodt.cas.resource.monitor.utils.MockGmetad.main(String[]) PERFORMANCE DM_BOXED_PRIMITIVE_FOR_PARSING 99 High

org.apache.oodt.cas.resource.mux.StandardBackendManager$BackendSet

Bug Category Details Line Priority
Should org.apache.oodt.cas.resource.mux.StandardBackendManager$BackendSet be a _static_ inner class? PERFORMANCE SIC_INNER_SHOULD_BE_STATIC 113-121 Medium

org.apache.oodt.cas.resource.scheduler.LRUScheduler

Bug Category Details Line Priority
org.apache.oodt.cas.resource.scheduler.LRUScheduler.schedule(JobSpec) might ignore java.lang.Exception BAD_PRACTICE DE_MIGHT_IGNORE 161 Medium

org.apache.oodt.cas.resource.system.XmlRpcResourceManager

Bug Category Details Line Priority
new org.apache.oodt.cas.resource.system.XmlRpcResourceManager(int) may fail to clean up java.io.InputStream EXPERIMENTAL OBL_UNSATISFIED_OBLIGATION 80 Medium
new org.apache.oodt.cas.resource.system.XmlRpcResourceManager(int) may fail to close stream BAD_PRACTICE OS_OPEN_STREAM 80 Medium
new org.apache.oodt.cas.resource.system.XmlRpcResourceManager(int) invokes Thread.start() MT_CORRECTNESS SC_START_IN_CTOR 92 Medium

org.apache.oodt.cas.resource.system.XmlRpcResourceManagerClient

Bug Category Details Line Priority
new org.apache.oodt.cas.resource.system.XmlRpcResourceManagerClient(URL) may fail to clean up java.io.InputStream EXPERIMENTAL OBL_UNSATISFIED_OBLIGATION 91 Medium
new org.apache.oodt.cas.resource.system.XmlRpcResourceManagerClient(URL) may fail to close stream BAD_PRACTICE OS_OPEN_STREAM 91 Medium

org.apache.oodt.cas.resource.system.extern.XmlRpcBatchStub

Bug Category Details Line Priority
Dead store to stub in org.apache.oodt.cas.resource.system.extern.XmlRpcBatchStub.main(String[]) STYLE DLS_DEAD_LOCAL_STORE 199 Medium

org.apache.oodt.cas.resource.system.extern.XmlRpcBatchStub$RunnableJob

Bug Category Details Line Priority
Should org.apache.oodt.cas.resource.system.extern.XmlRpcBatchStub$RunnableJob be a _static_ inner class? PERFORMANCE SIC_INNER_SHOULD_BE_STATIC 217-239 Medium

org.apache.oodt.cas.resource.tools.RunDirJobSubmitter

Bug Category Details Line Priority
Found reliance on default encoding in org.apache.oodt.cas.resource.tools.RunDirJobSubmitter.submitRunDirJobFile(String, String): new java.io.FileReader(String) I18N DM_DEFAULT_ENCODING 106 High

org.apache.oodt.cas.resource.util.ResourceNodeComparator

Bug Category Details Line Priority
org.apache.oodt.cas.resource.util.ResourceNodeComparator implements Comparator but not Serializable BAD_PRACTICE SE_COMPARATOR_SHOULD_BE_SERIALIZABLE 27-33 Medium

org.apache.oodt.cas.resource.util.Ulimit

Bug Category Details Line Priority
Found reliance on default encoding in org.apache.oodt.cas.resource.util.Ulimit.getUlimitProperties(): new java.io.InputStreamReader(InputStream) I18N DM_DEFAULT_ENCODING 218 High
Found reliance on default encoding in org.apache.oodt.cas.resource.util.Ulimit.getUlimitPropertiesMap(): new java.io.InputStreamReader(InputStream) I18N DM_DEFAULT_ENCODING 187 High
org.apache.oodt.cas.resource.util.Ulimit.getUlimitProperties() may fail to close stream BAD_PRACTICE OS_OPEN_STREAM 217 Medium
org.apache.oodt.cas.resource.util.Ulimit.getUlimitPropertiesMap() may fail to close stream BAD_PRACTICE OS_OPEN_STREAM 186 Medium

org.apache.oodt.cas.resource.util.XmlStructFactory

Bug Category Details Line Priority
Boxing/unboxing to parse a primitive org.apache.oodt.cas.resource.util.XmlStructFactory.getNodes(Node) PERFORMANCE DM_BOXED_PRIMITIVE_FOR_PARSING 77 High
org.apache.oodt.cas.resource.util.XmlStructFactory.LOG isn't final but should be MALICIOUS_CODE MS_SHOULD_BE_FINAL 56 High