SpotBugs Bug Detector Report

The following document contains the results of SpotBugs

SpotBugs Version is 4.9.3

Threshold is

Effort is max

Summary

Classes Bugs Errors Missing Classes
230 30 0 0

Files

Class Bugs
it.univr.di.cstnu.algorithms.AbstractCSTN$EdgesToCheck 1
it.univr.di.cstnu.algorithms.OSTNU 2
it.univr.di.cstnu.algorithms.STNURTE 1
it.univr.di.cstnu.graph.STNUEdgeInt 1
it.univr.di.cstnu.graph.TNGraph 20
it.univr.di.cstnu.graph.TNGraph$EdgeIndex 1
it.univr.di.cstnu.util.ObjectArrayFIFOSetQueue 2
it.univr.di.cstnu.util.OptimizationEngine$OptimizationResult 1
it.univr.di.cstnu.util.STNURandomGenerator 1

it.univr.di.cstnu.algorithms.AbstractCSTN$EdgesToCheck

Bug Category Details Line Priority
it.univr.di.cstnu.algorithms.AbstractCSTN$EdgesToCheck.iterator() may return null, but is declared @Nonnull CORRECTNESS NP_NONNULL_RETURN_VIOLATION 205 High

it.univr.di.cstnu.algorithms.OSTNU

Bug Category Details Line Priority
it.univr.di.cstnu.algorithms.OSTNU.getLabel4ValueInvolvingContingent(LabeledNode, LabeledNode, boolean) may return null, but is declared @Nonnull CORRECTNESS NP_NONNULL_RETURN_VIOLATION 1473 High
it.univr.di.cstnu.algorithms.OSTNU.getLabel4ValueInvolvingContingent(LabeledNode, LabeledNode, boolean) may return null, but is declared @Nonnull CORRECTNESS NP_NONNULL_RETURN_VIOLATION 1471 High

it.univr.di.cstnu.algorithms.STNURTE

Bug Category Details Line Priority
Suppressing annotation on the method it.univr.di.cstnu.algorithms.STNURTE.getG() is unnecessary STYLE US_USELESS_SUPPRESSION_ON_METHOD 764 Medium

it.univr.di.cstnu.graph.STNUEdgeInt

Bug Category Details Line Priority
Suppressing annotation on the class it.univr.di.cstnu.graph.STNUEdgeInt is unnecessary STYLE US_USELESS_SUPPRESSION_ON_CLASS 21 Medium

it.univr.di.cstnu.graph.TNGraph

Bug Category Details Line Priority
it.univr.di.cstnu.graph.TNGraph.getObservers() may return null, but is declared @Nonnull CORRECTNESS NP_NONNULL_RETURN_VIOLATION 1642 High
it.univr.di.cstnu.graph.TNGraph.getPropositions() may return null, but is declared @Nonnull CORRECTNESS NP_NONNULL_RETURN_VIOLATION 1705 High
it.univr.di.cstnu.graph.TNGraph.getVertices() may return null, but is declared @Nonnull CORRECTNESS NP_NONNULL_RETURN_VIOLATION 1804 High
Redundant nullcheck of edgeNodeList, which is known to be non-null in it.univr.di.cstnu.graph.TNGraph.getInEdgesAndNodes(LabeledNode) STYLE RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE 1417 High
Redundant nullcheck of it.univr.di.cstnu.graph.TNGraph.proposition2Observer, which is known to be non-null in it.univr.di.cstnu.graph.TNGraph.getObservedAndObserver() STYLE RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE 1562 High
Redundant nullcheck of it.univr.di.cstnu.graph.TNGraph.observer2Z, which is known to be non-null in it.univr.di.cstnu.graph.TNGraph.getObserver2ZEdges() STYLE RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE 1593 High
Redundant nullcheck of edgeNodeList, which is known to be non-null in it.univr.di.cstnu.graph.TNGraph.getOutEdgesAndNodes(LabeledNode) STYLE RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE 1612 High
Redundant nullcheck of differentEdges, which is known to be non-null in it.univr.di.cstnu.graph.TNGraph.differentEdgesOf(TNGraph) STYLE RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE 1124 Medium
Redundant nullcheck of coll, which is known to be non-null in it.univr.di.cstnu.graph.TNGraph.getEdges() STYLE RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE 1321 Medium
Redundant nullcheck of edgeNodeList, which is known to be non-null in it.univr.di.cstnu.graph.TNGraph.getEdgesAndNodes() STYLE RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE 1346 Medium
Redundant nullcheck of inEdges, which is known to be non-null in it.univr.di.cstnu.graph.TNGraph.getInEdges(LabeledNode) STYLE RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE 1398 Medium
Redundant nullcheck of edgeNodeList, which is known to be non-null in it.univr.di.cstnu.graph.TNGraph.getInEdgesAndNodes(LabeledNode) STYLE RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE 1428 Medium
Redundant nullcheck of coll, which is known to be non-null in it.univr.di.cstnu.graph.TNGraph.getIncidentEdges(LabeledNode) STYLE RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE 1440 Medium
Redundant nullcheck of it.univr.di.cstnu.graph.TNGraph.lowerCaseEdges, which is known to be non-null in it.univr.di.cstnu.graph.TNGraph.getLowerLabeledEdges() STYLE RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE 1479 Medium
Redundant nullcheck of outEdges, which is known to be non-null in it.univr.di.cstnu.graph.TNGraph.getOutEdges(LabeledNode) STYLE RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE 1664 Medium
Redundant nullcheck of edgeNodeList, which is known to be non-null in it.univr.di.cstnu.graph.TNGraph.getOutEdgesAndNodes(LabeledNode) STYLE RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE 1623 Medium
Redundant nullcheck of predecessor, which is known to be non-null in it.univr.di.cstnu.graph.TNGraph.getPredecessors(LabeledNode) STYLE RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE 1691 Medium
Redundant nullcheck of successors, which is known to be non-null in it.univr.di.cstnu.graph.TNGraph.getSuccessors(LabeledNode) STYLE RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE 1743 Medium
Redundant nullcheck of map, which is known to be non-null in it.univr.di.cstnu.graph.TNGraph.newProposition2NodeInstance() STYLE RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE 359 Medium
Redundant nullcheck of StringBuilder.toString(), which is known to be non-null in it.univr.di.cstnu.graph.TNGraph.toString() STYLE RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE 2281 Medium

it.univr.di.cstnu.graph.TNGraph$EdgeIndex

Bug Category Details Line Priority
Redundant nullcheck of String.format(String, Object[]), which is known to be non-null in it.univr.di.cstnu.graph.TNGraph$EdgeIndex.toString() STYLE RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE 400 Medium

it.univr.di.cstnu.util.ObjectArrayFIFOSetQueue

Bug Category Details Line Priority
Redundant nullcheck of it.univr.di.cstnu.util.ObjectArrayFIFOSetQueue.copyArray(Object[]), which is known to be non-null in it.univr.di.cstnu.util.ObjectArrayFIFOSetQueue.toArray() STYLE RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE 362 Medium
Redundant nullcheck of it.univr.di.cstnu.util.ObjectArrayFIFOSetQueue.copyArray(Object[]), which is known to be non-null in it.univr.di.cstnu.util.ObjectArrayFIFOSetQueue.toArray(Object[]) STYLE RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE 380 Medium

it.univr.di.cstnu.util.OptimizationEngine$OptimizationResult

Bug Category Details Line Priority
new it.univr.di.cstnu.util.OptimizationEngine$OptimizationResult(double[], double, int) may expose internal representation by storing an externally mutable object into OptimizationEngine$OptimizationResult.solution MALICIOUS_CODE EI_EXPOSE_REP2 33 Medium

it.univr.di.cstnu.util.STNURandomGenerator

Bug Category Details Line Priority
it.univr.di.cstnu.util.STNURandomGenerator.generateRandomTree(TNGraph, LabeledNode[], EdgeSupplier) may return null, but is declared @Nonnull CORRECTNESS NP_NONNULL_RETURN_VIOLATION 2088 High