The following document contains the results of FindBugs Report
FindBugs Version is 1.3.9
Threshold is
Effort is min
| 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 |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Unread field: org.apache.vxquery.runtime.functions.cast.CastToHexBinaryOperation.dOutInner | PERFORMANCE | URF_UNREAD_FIELD | 34 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Unread field: org.apache.vxquery.runtime.functions.cast.CastToQNameOperation.dOutInner | PERFORMANCE | URF_UNREAD_FIELD | 34 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| There is an apparent infinite loop in org.apache.vxquery.runtime.functions.cast.CastToStringOperation.convertDecimal(XSDecimalPointable, DataOutput) | CORRECTNESS | IL_INFINITE_LOOP | 132 | High |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Dead store to tid1 in org.apache.vxquery.runtime.functions.comparison.general.AbstractGeneralComparisonScalarEvaluatorFactory$1.transformThenCompareTaggedValues(AbstractValueComparisonOperation, TaggedValuePointable, TaggedValuePointable, DynamicContext) | STYLE | DLS_DEAD_LOCAL_STORE | 201 | Medium |
| Dead store to tid2 in org.apache.vxquery.runtime.functions.comparison.general.AbstractGeneralComparisonScalarEvaluatorFactory$1.transformThenCompareTaggedValues(AbstractValueComparisonOperation, TaggedValuePointable, TaggedValuePointable, DynamicContext) | STYLE | DLS_DEAD_LOCAL_STORE | 208 | Medium |
| 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 |
| 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 |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Switch statement found in org.apache.vxquery.runtime.functions.misc.FnDataScalarEvaluatorFactory$1.atomizeNode(NodeTreePointable, SequenceBuilder) where one case falls through to the next case | STYLE | SF_SWITCH_FALLTHROUGH | 144 | Medium |
| 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 |
| 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 |
| 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 | 1126 | High |