FindBugs Bug Detector Report

The following document contains the results of FindBugs

FindBugs Version is 3.0.1

Threshold is low

Effort is max

Summary

Classes Bugs Errors Missing Classes
157 12 0 0

org.opendaylight.yangtools.yang.model.repo.util.AbstractSchemaRepository$SchemaProviderCostComparator

Bug Category Details Line Priority
org.opendaylight.yangtools.yang.model.repo.util.AbstractSchemaRepository$SchemaProviderCostComparator implements Comparator but not Serializable BAD_PRACTICE SE_COMPARATOR_SHOULD_BE_SERIALIZABLE 199 Low

org.opendaylight.yangtools.yang.model.repo.util.FilesystemSchemaSourceCache

Bug Category Details Line Priority
Possible null pointer dereference in org.opendaylight.yangtools.yang.model.repo.util.FilesystemSchemaSourceCache.findFileWithNewestRev(SourceIdentifier, File) due to return value of called method STYLE NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE 170 Medium

org.opendaylight.yangtools.yang.model.repo.util.FilesystemSchemaSourceCache$YangTextSchemaStorageAdapter$1

Bug Category Details Line Priority
The class org.opendaylight.yangtools.yang.model.repo.util.FilesystemSchemaSourceCache$YangTextSchemaStorageAdapter$1 could be refactored into a named _static_ inner class PERFORMANCE SIC_INNER_SHOULD_BE_STATIC_ANON 256 Low

org.opendaylight.yangtools.yang.model.util.FilteringSchemaContextProxy$ModuleId

Bug Category Details Line Priority
org.opendaylight.yangtools.yang.model.util.FilteringSchemaContextProxy$ModuleId.getRev() may expose internal representation by returning FilteringSchemaContextProxy$ModuleId.rev MALICIOUS_CODE EI_EXPOSE_REP 222 Medium

org.opendaylight.yangtools.yang.model.util.SchemaContextUtil

Bug Category Details Line Priority
Redundant nullcheck of qnamedPath, which is known to be non-null in org.opendaylight.yangtools.yang.model.util.SchemaContextUtil.findDataSchemaNode(SchemaContext, Module, RevisionAwareXPath) STYLE RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE 136 Low
Redundant nullcheck of strXPath, which is known to be non-null in org.opendaylight.yangtools.yang.model.util.SchemaContextUtil.findDataSchemaNode(SchemaContext, Module, RevisionAwareXPath) STYLE RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE 132 Low
Redundant nullcheck of actualNodePath, which is known to be non-null in org.opendaylight.yangtools.yang.model.util.SchemaContextUtil.findDataSchemaNodeForRelativeXPath(SchemaContext, Module, SchemaNode, RevisionAwareXPath) STYLE RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE 194 Low

org.opendaylight.yangtools.yang.model.util.type.ConcreteTypeBuilder

Bug Category Details Line Priority
Redundant nullcheck of org.opendaylight.yangtools.yang.model.api.TypeDefinition.getStatus(), which is known to be non-null in new org.opendaylight.yangtools.yang.model.util.type.ConcreteTypeBuilder(TypeDefinition, SchemaPath) STYLE RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE 35 Low

org.opendaylight.yangtools.yang.model.util.type.InvalidBitDefinitionException

Bug Category Details Line Priority
Class org.opendaylight.yangtools.yang.model.util.type.InvalidBitDefinitionException defines non-transient non-serializable instance field offendingBit BAD_PRACTICE SE_BAD_FIELD Low

org.opendaylight.yangtools.yang.model.util.type.InvalidEnumDefinitionException

Bug Category Details Line Priority
Class org.opendaylight.yangtools.yang.model.util.type.InvalidEnumDefinitionException defines non-transient non-serializable instance field offendingEnum BAD_PRACTICE SE_BAD_FIELD Low

org.opendaylight.yangtools.yang.model.util.type.InvalidLengthConstraintException

Bug Category Details Line Priority
Class org.opendaylight.yangtools.yang.model.util.type.InvalidLengthConstraintException defines non-transient non-serializable instance field offendingConstraint BAD_PRACTICE SE_BAD_FIELD Low

org.opendaylight.yangtools.yang.model.util.type.InvalidRangeConstraintException

Bug Category Details Line Priority
Class org.opendaylight.yangtools.yang.model.util.type.InvalidRangeConstraintException defines non-transient non-serializable instance field offendingRangeConstraint BAD_PRACTICE SE_BAD_FIELD Low