This project has retired. For details please refer to its Attic page.
Query Expression – 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
109 60 0 0

org.apache.oodt.cas.product.data.DataDeliveryServlet

Bug Category Details Line Priority
Class org.apache.oodt.cas.product.data.DataDeliveryServlet defines non-transient non-serializable instance field client BAD_PRACTICE SE_BAD_FIELD Not available Medium

org.apache.oodt.cas.product.data.DatasetDeliveryServlet

Bug Category Details Line Priority
Exceptional return value of java.io.File.delete() ignored in org.apache.oodt.cas.product.data.DatasetDeliveryServlet.doPut(HttpServletRequest, HttpServletResponse) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 226 Medium
Class org.apache.oodt.cas.product.data.DatasetDeliveryServlet defines non-transient non-serializable instance field client BAD_PRACTICE SE_BAD_FIELD Not available Medium

org.apache.oodt.cas.product.jaxrs.writers.DatasetRssWriter

Bug Category Details Line Priority
Call to method of static java.text.DateFormat in org.apache.oodt.cas.product.jaxrs.writers.DatasetRssWriter.writeTo(DatasetResource, Class, Type, Annotation[], MediaType, MultivaluedMap, OutputStream) MT_CORRECTNESS STCAL_INVOKE_ON_STATIC_DATE_FORMAT_INSTANCE 96 Medium

org.apache.oodt.cas.product.jaxrs.writers.ProductRssWriter

Bug Category Details Line Priority
Call to method of static java.text.DateFormat in org.apache.oodt.cas.product.jaxrs.writers.ProductRssWriter.writeTo(ProductResource, Class, Type, Annotation[], MediaType, MultivaluedMap, OutputStream) MT_CORRECTNESS STCAL_INVOKE_ON_STATIC_DATE_FORMAT_INSTANCE 94 Medium

org.apache.oodt.cas.product.jaxrs.writers.ReferenceRssWriter

Bug Category Details Line Priority
Call to method of static java.text.DateFormat in org.apache.oodt.cas.product.jaxrs.writers.ReferenceRssWriter.writeTo(ReferenceResource, Class, Type, Annotation[], MediaType, MultivaluedMap, OutputStream) MT_CORRECTNESS STCAL_INVOKE_ON_STATIC_DATE_FORMAT_INSTANCE 93 Medium

org.apache.oodt.cas.product.jaxrs.writers.RssWriter

Bug Category Details Line Priority
org.apache.oodt.cas.product.jaxrs.writers.RssWriter.dateFormatter is a static field of type java.text.DateFormat, which isn't thread safe MT_CORRECTNESS STCAL_STATIC_SIMPLE_DATE_FORMAT_INSTANCE Not available Medium

org.apache.oodt.cas.product.jaxrs.writers.TransfersRssWriter

Bug Category Details Line Priority
Call to method of static java.text.DateFormat in org.apache.oodt.cas.product.jaxrs.writers.TransfersRssWriter.writeTo(TransfersResource, Class, Type, Annotation[], MediaType, MultivaluedMap, OutputStream) MT_CORRECTNESS STCAL_INVOKE_ON_STATIC_DATE_FORMAT_INSTANCE 92 Medium

org.apache.oodt.cas.product.rdf.RDFDatasetServlet

Bug Category Details Line Priority
Class org.apache.oodt.cas.product.rdf.RDFDatasetServlet defines non-transient non-serializable instance field LOG BAD_PRACTICE SE_BAD_FIELD Not available Medium
Class org.apache.oodt.cas.product.rdf.RDFDatasetServlet defines non-transient non-serializable instance field fClient BAD_PRACTICE SE_BAD_FIELD Not available Medium
Class org.apache.oodt.cas.product.rdf.RDFDatasetServlet defines non-transient non-serializable instance field rdfConf BAD_PRACTICE SE_BAD_FIELD Not available Medium

org.apache.oodt.cas.product.rdf.RDFProductServlet

Bug Category Details Line Priority
Class org.apache.oodt.cas.product.rdf.RDFProductServlet defines non-transient non-serializable instance field LOG BAD_PRACTICE SE_BAD_FIELD Not available Medium
Class org.apache.oodt.cas.product.rdf.RDFProductServlet defines non-transient non-serializable instance field fClient BAD_PRACTICE SE_BAD_FIELD Not available Medium
Class org.apache.oodt.cas.product.rdf.RDFProductServlet defines non-transient non-serializable instance field rdfConf BAD_PRACTICE SE_BAD_FIELD Not available Medium

org.apache.oodt.cas.product.rss.RSSProductServlet

Bug Category Details Line Priority
Boxing/unboxing to parse a primitive org.apache.oodt.cas.product.rss.RSSProductServlet.doIt(HttpServletRequest, HttpServletResponse) PERFORMANCE DM_BOXED_PRIMITIVE_FOR_PARSING 140 High
Class org.apache.oodt.cas.product.rss.RSSProductServlet defines non-transient non-serializable instance field LOG BAD_PRACTICE SE_BAD_FIELD Not available Medium
Class org.apache.oodt.cas.product.rss.RSSProductServlet defines non-transient non-serializable instance field conf BAD_PRACTICE SE_BAD_FIELD Not available Medium
Call to method of static java.text.DateFormat in org.apache.oodt.cas.product.rss.RSSProductServlet.doIt(HttpServletRequest, HttpServletResponse) MT_CORRECTNESS STCAL_INVOKE_ON_STATIC_DATE_FORMAT_INSTANCE 211 Medium
org.apache.oodt.cas.product.rss.RSSProductServlet.dateFormatter is a static field of type java.text.DateFormat, which isn't thread safe MT_CORRECTNESS STCAL_STATIC_SIMPLE_DATE_FORMAT_INSTANCE Not available Medium

org.apache.oodt.cas.product.rss.RSSProductTransferServlet

Bug Category Details Line Priority
Class org.apache.oodt.cas.product.rss.RSSProductTransferServlet defines non-transient non-serializable instance field LOG BAD_PRACTICE SE_BAD_FIELD Not available Medium
Class org.apache.oodt.cas.product.rss.RSSProductTransferServlet defines non-transient non-serializable instance field fClient BAD_PRACTICE SE_BAD_FIELD Not available Medium
Class org.apache.oodt.cas.product.rss.RSSProductTransferServlet defines non-transient non-serializable instance field rssconf BAD_PRACTICE SE_BAD_FIELD Not available Medium
Call to method of static java.text.DateFormat in org.apache.oodt.cas.product.rss.RSSProductTransferServlet.doIt(HttpServletRequest, HttpServletResponse) MT_CORRECTNESS STCAL_INVOKE_ON_STATIC_DATE_FORMAT_INSTANCE 196 Medium
org.apache.oodt.cas.product.rss.RSSProductTransferServlet.dateFormatter is a static field of type java.text.DateFormat, which isn't thread safe MT_CORRECTNESS STCAL_STATIC_SIMPLE_DATE_FORMAT_INSTANCE Not available Medium

org.apache.oodt.product.handlers.ofsn.MD5GetHandler

Bug Category Details Line Priority
Found reliance on default encoding in org.apache.oodt.product.handlers.ofsn.MD5GetHandler.retrieveChunk(String, long, int): String.getBytes() I18N DM_DEFAULT_ENCODING 85 High
Found reliance on default encoding in org.apache.oodt.product.handlers.ofsn.MD5GetHandler.sizeOf(String): String.getBytes() I18N DM_DEFAULT_ENCODING 108 High

org.apache.oodt.product.handlers.ofsn.OFSNFileHandler

Bug Category Details Line Priority
Found reliance on default encoding in org.apache.oodt.product.handlers.ofsn.OFSNFileHandler.query(XMLQuery): java.io.ByteArrayOutputStream.toString() I18N DM_DEFAULT_ENCODING 125 High

org.apache.oodt.product.handlers.ofsn.URLGetHandler

Bug Category Details Line Priority
Found reliance on default encoding in org.apache.oodt.product.handlers.ofsn.URLGetHandler.retrieveChunk(String, long, int): String.getBytes() I18N DM_DEFAULT_ENCODING 151 High
Found reliance on default encoding in org.apache.oodt.product.handlers.ofsn.URLGetHandler.sizeOf(String): String.getBytes() I18N DM_DEFAULT_ENCODING 240 High

org.apache.oodt.product.handlers.ofsn.util.OFSNUtils

Bug Category Details Line Priority
org.apache.oodt.product.handlers.ofsn.util.OFSNUtils.buildZipFile(String, File[]) may fail to clean up java.io.InputStream on checked exception EXPERIMENTAL OBL_UNSATISFIED_OBLIGATION_EXCEPTION_EDGE 148 Medium

org.apache.oodt.xmlquery.ByteArrayCodec

Bug Category Details Line Priority
Found reliance on default encoding in org.apache.oodt.xmlquery.ByteArrayCodec.decode(Node): String.getBytes() I18N DM_DEFAULT_ENCODING 53 High
Found reliance on default encoding in org.apache.oodt.xmlquery.ByteArrayCodec.encode(Object, Document): new String(byte[]) I18N DM_DEFAULT_ENCODING 39 High

org.apache.oodt.xmlquery.CompressedObjectCodec

Bug Category Details Line Priority
org.apache.oodt.xmlquery.CompressedObjectCodec.encode(Object, Document) might ignore java.io.IOException BAD_PRACTICE DE_MIGHT_IGNORE 57 Medium
Found reliance on default encoding in org.apache.oodt.xmlquery.CompressedObjectCodec.decode(Node): String.getBytes() I18N DM_DEFAULT_ENCODING 73 High
Found reliance on default encoding in org.apache.oodt.xmlquery.CompressedObjectCodec.encode(Object, Document): java.io.ByteArrayOutputStream.toString() I18N DM_DEFAULT_ENCODING 59 High

org.apache.oodt.xmlquery.CompressedStringCodec

Bug Category Details Line Priority
org.apache.oodt.xmlquery.CompressedStringCodec.encode(Object, Document) might ignore java.io.IOException BAD_PRACTICE DE_MIGHT_IGNORE 54 Medium
Found reliance on default encoding in org.apache.oodt.xmlquery.CompressedStringCodec.decode(Node): new String(byte[], int, int) I18N DM_DEFAULT_ENCODING 76 High
Found reliance on default encoding in org.apache.oodt.xmlquery.CompressedStringCodec.decode(Node): String.getBytes() I18N DM_DEFAULT_ENCODING 69 High
Found reliance on default encoding in org.apache.oodt.xmlquery.CompressedStringCodec.encode(Object, Document): java.io.ByteArrayOutputStream.toString() I18N DM_DEFAULT_ENCODING 56 High
Found reliance on default encoding in org.apache.oodt.xmlquery.CompressedStringCodec.encode(Object, Document): String.getBytes() I18N DM_DEFAULT_ENCODING 52 High
Found reliance on default encoding in org.apache.oodt.xmlquery.CompressedStringCodec.getInputStream(Object): String.getBytes() I18N DM_DEFAULT_ENCODING 85 High
Found reliance on default encoding in org.apache.oodt.xmlquery.CompressedStringCodec.sizeOf(Object): String.getBytes() I18N DM_DEFAULT_ENCODING 89 High

org.apache.oodt.xmlquery.Header

Bug Category Details Line Priority
Possible null pointer dereference of Header.type in org.apache.oodt.xmlquery.Header.equals(Object) CORRECTNESS NP_NULL_ON_SOME_PATH 181 Medium
Possible null pointer dereference of Header.unit in org.apache.oodt.xmlquery.Header.equals(Object) CORRECTNESS NP_NULL_ON_SOME_PATH 182 Medium

org.apache.oodt.xmlquery.LargeResult

Bug Category Details Line Priority
Found reliance on default encoding in org.apache.oodt.xmlquery.LargeResult.getValue(): new String(byte[]) I18N DM_DEFAULT_ENCODING 118 High
org.apache.oodt.xmlquery.LargeResult doesn't override Result.equals(Object) STYLE EQ_DOESNT_OVERRIDE_EQUALS 1 Medium

org.apache.oodt.xmlquery.ObjectCodec

Bug Category Details Line Priority
org.apache.oodt.xmlquery.ObjectCodec.encode(Object, Document) might ignore java.io.IOException BAD_PRACTICE DE_MIGHT_IGNORE 54 Medium
Found reliance on default encoding in org.apache.oodt.xmlquery.ObjectCodec.decode(Node): String.getBytes() I18N DM_DEFAULT_ENCODING 70 High
Found reliance on default encoding in org.apache.oodt.xmlquery.ObjectCodec.encode(Object, Document): java.io.ByteArrayOutputStream.toString() I18N DM_DEFAULT_ENCODING 56 High

org.apache.oodt.xmlquery.Result

Bug Category Details Line Priority
org.apache.oodt.xmlquery.Result.codecs isn't final but should be MALICIOUS_CODE MS_SHOULD_BE_FINAL 421 High

org.apache.oodt.xmlquery.Statistic

Bug Category Details Line Priority
Class org.apache.oodt.xmlquery.Statistic implements Cloneable but does not define or use clone method BAD_PRACTICE CN_IDIOM 45-154 Medium

org.apache.oodt.xmlquery.StringCodec

Bug Category Details Line Priority
Found reliance on default encoding in org.apache.oodt.xmlquery.StringCodec.getInputStream(Object): String.getBytes() I18N DM_DEFAULT_ENCODING 45 High
Found reliance on default encoding in org.apache.oodt.xmlquery.StringCodec.sizeOf(Object): String.getBytes() I18N DM_DEFAULT_ENCODING 49 High

org.apache.oodt.xmlquery.XMLQuery

Bug Category Details Line Priority
Found reliance on default encoding in new org.apache.oodt.xmlquery.XMLQuery(String): String.getBytes() I18N DM_DEFAULT_ENCODING 251 High
Found reliance on default encoding in org.apache.oodt.xmlquery.XMLQuery.main(String[]): new java.io.FileReader(String) I18N DM_DEFAULT_ENCODING 937 High
Potentially dangerous use of non-short-circuit logic in org.apache.oodt.xmlquery.XMLQuery.kqAndParse() STYLE NS_DANGEROUS_NON_SHORT_CIRCUIT 466 High
Potentially dangerous use of non-short-circuit logic in org.apache.oodt.xmlquery.XMLQuery.kqFactorParse() STYLE NS_DANGEROUS_NON_SHORT_CIRCUIT 498 High
Potentially dangerous use of non-short-circuit logic in org.apache.oodt.xmlquery.XMLQuery.kqNotParse() STYLE NS_DANGEROUS_NON_SHORT_CIRCUIT 481 High
Potentially dangerous use of non-short-circuit logic in org.apache.oodt.xmlquery.XMLQuery.kqOrParse() STYLE NS_DANGEROUS_NON_SHORT_CIRCUIT 450 High
The field org.apache.oodt.xmlquery.XMLQuery.previous_token is transient but isn't set by deserialization BAD_PRACTICE SE_TRANSIENT_FIELD_NOT_RESTORED Not available Medium