FindBugs Bug Detector Report

The following document contains the results of FindBugs Report

FindBugs Version is 2.0.1

Threshold is

Effort is min

Summary

Classes Bugs Errors Missing Classes
1002 30 0 0

org.apache.vxquery.compiler.rewriter.rules.ConvertAssignSortDistinctNodesToOperatorsRule

Bug Category Details Line Priority
Dead store to nodeIdKeyVariableRef in org.apache.vxquery.compiler.rewriter.rules.ConvertAssignSortDistinctNodesToOperatorsRule.rewritePost(Mutable, IOptimizationContext) STYLE DLS_DEAD_LOCAL_STORE 114 High

org.apache.vxquery.datamodel.util.DateTime

Bug Category Details Line Priority
org.apache.vxquery.datamodel.util.DateTime.DAYS_OF_MONTH_LEAP is a mutable array MALICIOUS_CODE MS_MUTABLE_ARRAY 27 Medium
org.apache.vxquery.datamodel.util.DateTime.DAYS_OF_MONTH_ORDI is a mutable array MALICIOUS_CODE MS_MUTABLE_ARRAY 26 Medium
org.apache.vxquery.datamodel.util.DateTime.FIELD_MAXS should be package protected MALICIOUS_CODE MS_PKGPROTECT 45 Medium
org.apache.vxquery.datamodel.util.DateTime.FIELD_MINS should be package protected MALICIOUS_CODE MS_PKGPROTECT 37 Medium

org.apache.vxquery.result.ResultUtils

Bug Category Details Line Priority
Found reliance on default encoding in org.apache.vxquery.result.ResultUtils.getStringFromBuffer(ByteBuffer, IFrameTupleAccessor): new String(byte[], int, int) I18N DM_DEFAULT_ENCODING 36 High
org.apache.vxquery.result.ResultUtils.getStringFromBuffer(ByteBuffer, IFrameTupleAccessor) ignores result of edu.uci.ics.hyracks.dataflow.common.comm.util.ByteBufferInputStream.read(byte[], int, int) BAD_PRACTICE RR_NOT_CHECKED 35 Medium
org.apache.vxquery.result.ResultUtils.getStringFromBuffer(ByteBuffer, IFrameTupleAccessor) concatenates strings using + in a loop PERFORMANCE SBSC_USE_STRINGBUFFER_CONCATENATION 36 Medium

org.apache.vxquery.runtime.factory.hashfunction.VXQueryRawBinaryHashFunctionFactory

Bug Category Details Line Priority
org.apache.vxquery.runtime.factory.hashfunction.VXQueryRawBinaryHashFunctionFactory.INSTANCE isn't final but should be MALICIOUS_CODE MS_SHOULD_BE_FINAL 26 High

org.apache.vxquery.runtime.functions.base.AbstractTaggedValueArgumentAggregateEvaluatorFactory

Bug Category Details Line Priority
org.apache.vxquery.runtime.functions.base.AbstractTaggedValueArgumentAggregateEvaluatorFactory.dCtx isn't final and can't be protected from malicious code MALICIOUS_CODE MS_CANNOT_BE_FINAL Medium
Write to static field org.apache.vxquery.runtime.functions.base.AbstractTaggedValueArgumentAggregateEvaluatorFactory.dCtx from instance method org.apache.vxquery.runtime.functions.base.AbstractTaggedValueArgumentAggregateEvaluatorFactory.createAggregateEvaluator(IHyracksTaskContext) STYLE ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD 41 High

org.apache.vxquery.runtime.functions.cast.CastToStringOperation

Bug Category Details Line Priority
Test for floating point equality in org.apache.vxquery.runtime.functions.cast.CastToStringOperation.convertDoubleCanonical(DoublePointable, DataOutput) STYLE FE_FLOATING_POINT_EQUALITY 245 High
Test for floating point equality in org.apache.vxquery.runtime.functions.cast.CastToStringOperation.convertFloatCanonical(FloatPointable, DataOutput) STYLE FE_FLOATING_POINT_EQUALITY 495 High

org.apache.vxquery.runtime.functions.datetime.AbstractValueFromDateTimeScalarEvaluatorFactory$1

Bug Category Details Line Priority
Switch statement found in org.apache.vxquery.runtime.functions.datetime.AbstractValueFromDateTimeScalarEvaluatorFactory$1.evaluate(TaggedValuePointable[], IPointable) where default case is missing STYLE SF_SWITCH_NO_DEFAULT 70 Medium

org.apache.vxquery.runtime.functions.datetime.AbstractValueFromDurationScalarEvaluatorFactory$1

Bug Category Details Line Priority
Switch statement found in org.apache.vxquery.runtime.functions.datetime.AbstractValueFromDurationScalarEvaluatorFactory$1.evaluate(TaggedValuePointable[], IPointable) where default case is missing STYLE SF_SWITCH_NO_DEFAULT 95 Medium

org.apache.vxquery.runtime.functions.error.FnErrorScalarEvaluatorFactory

Bug Category Details Line Priority
Dead store to prefixp in org.apache.vxquery.runtime.functions.error.FnErrorScalarEvaluatorFactory.createEvaluator(IHyracksTaskContext, IScalarEvaluator[]) STYLE DLS_DEAD_LOCAL_STORE 53 Medium

org.apache.vxquery.runtime.functions.error.FnErrorScalarEvaluatorFactory$1

Bug Category Details Line Priority
Dead store to localPart in org.apache.vxquery.runtime.functions.error.FnErrorScalarEvaluatorFactory$1.evaluate(TaggedValuePointable[], IPointable) STYLE DLS_DEAD_LOCAL_STORE 80 Medium
Dead store to namespaceURI in org.apache.vxquery.runtime.functions.error.FnErrorScalarEvaluatorFactory$1.evaluate(TaggedValuePointable[], IPointable) STYLE DLS_DEAD_LOCAL_STORE 79 Medium
Dead store to tvp3 in org.apache.vxquery.runtime.functions.error.FnErrorScalarEvaluatorFactory$1.evaluate(TaggedValuePointable[], IPointable) STYLE DLS_DEAD_LOCAL_STORE 114 Medium

org.apache.vxquery.runtime.functions.node.ElementNodeConstructorScalarEvaluator

Bug Category Details Line Priority
Switch statement found in org.apache.vxquery.runtime.functions.node.ElementNodeConstructorScalarEvaluator.copyElement(ElementNodeBuilder, DictionaryBuilder, NodeTreePointable, ElementNodePointable) where default case is missing STYLE SF_SWITCH_NO_DEFAULT 202 Medium

org.apache.vxquery.runtime.functions.numeric.AbstractNumericScalarEvaluatorFactory$1

Bug Category Details Line Priority
Switch statement found in org.apache.vxquery.runtime.functions.numeric.AbstractNumericScalarEvaluatorFactory$1.evaluate(TaggedValuePointable[], IPointable) where default case is missing STYLE SF_SWITCH_NO_DEFAULT 88 Medium

org.apache.vxquery.runtime.functions.numeric.FnCeilingOperation

Bug Category Details Line Priority
integral value cast to double and then passed to Math.ceil in org.apache.vxquery.runtime.functions.numeric.FnCeilingOperation.operateDecimal(XSDecimalPointable, DataOutput) CORRECTNESS ICAST_INT_CAST_TO_DOUBLE_PASSED_TO_CEIL 36 High

org.apache.vxquery.runtime.functions.numeric.FnRoundOperation

Bug Category Details Line Priority
int value cast to float and then passed to Math.round in org.apache.vxquery.runtime.functions.numeric.FnRoundOperation.operateDecimal(XSDecimalPointable, DataOutput) CORRECTNESS ICAST_INT_CAST_TO_FLOAT_PASSED_TO_ROUND 36 Medium

org.apache.vxquery.runtime.functions.step.AbstractDescendantPathStepScalarEvaluator

Bug Category Details Line Priority
Switch statement found in org.apache.vxquery.runtime.functions.step.AbstractDescendantPathStepScalarEvaluator.searchSubtree(TaggedValuePointable) where default case is missing STYLE SF_SWITCH_NO_DEFAULT 60 Medium

org.apache.vxquery.runtime.functions.unary.AbstractNumericUnaryScalarEvaluatorFactory$1

Bug Category Details Line Priority
Switch statement found in org.apache.vxquery.runtime.functions.unary.AbstractNumericUnaryScalarEvaluatorFactory$1.evaluate(TaggedValuePointable[], IPointable) where default case is missing STYLE SF_SWITCH_NO_DEFAULT 75 Medium

org.apache.vxquery.runtime.functions.util.FunctionHelper

Bug Category Details Line Priority
Found reliance on default encoding in org.apache.vxquery.runtime.functions.util.FunctionHelper.readInDocFromString(String, InputSource, ArrayBackedValueStorage, ITreeNodeIdProvider): new java.io.InputStreamReader(InputStream) I18N DM_DEFAULT_ENCODING 1420 High
Found reliance on default encoding in org.apache.vxquery.runtime.functions.util.FunctionHelper.readInDocFromString(String, InputSource, ArrayBackedValueStorage, ITreeNodeIdProvider): new java.io.InputStreamReader(InputStream) I18N DM_DEFAULT_ENCODING 1422 High
Switch statement found in org.apache.vxquery.runtime.functions.util.FunctionHelper.arithmeticOperation(AbstractArithmeticOperation, DynamicContext, TaggedValuePointable, TaggedValuePointable, IPointable) where default case is missing STYLE SF_SWITCH_NO_DEFAULT 129 Medium

org.apache.vxquery.xmlquery.translator.XMLQueryTranslator

Bug Category Details Line Priority
Dead store to tCtx in org.apache.vxquery.xmlquery.translator.XMLQueryTranslator.translateFLWORExprNode(XMLQueryTranslator$TranslationContext, FLWORExprNode) STYLE DLS_DEAD_LOCAL_STORE 1127 High
Switch statement found in org.apache.vxquery.xmlquery.translator.XMLQueryTranslator.translateModule(ModuleNode) where default case is missing STYLE SF_SWITCH_NO_DEFAULT 268 Medium