The following document contains the results of FindBugs
FindBugs Version is 3.0.1
Threshold is low
Effort is max
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Found reliance on default encoding in org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl.writeFile(File, String): new java.io.OutputStreamWriter(OutputStream) | I18N | DM_DEFAULT_ENCODING | 181 | High |
Exception is caught when Exception is not thrown in org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl.writeFile(File, String) | STYLE | REC_CATCH_EXCEPTION | 188 | Medium |
Exception is caught when Exception is not thrown in org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl.writeFile(File, String) | STYLE | REC_CATCH_EXCEPTION | 185 | Low |
Exceptional return value of java.io.File.mkdirs() ignored in org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl.writeJavaSource(File, String, String) | BAD_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 172 | Medium |
Exceptional return value of java.io.File.mkdirs() ignored in org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl.writeMetaInfServices(File, Class, ImmutableSet) | BAD_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 102 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
D'oh! A nonsensical invocation of equal(Object, Object) in org.opendaylight.yangtools.yang.unified.doc.generator.GeneratorImpl.childInfo(DataSchemaNode, Map) | CORRECTNESS | DMI_DOH | 3048 | Low |
D'oh! A nonsensical invocation of equal(Object, Object) in org.opendaylight.yangtools.yang.unified.doc.generator.GeneratorImpl.findNodeInChildNodes(QName, Iterable) | CORRECTNESS | DMI_DOH | 812 | Low |
D'oh! A nonsensical invocation of equal(Object, Object) in org.opendaylight.yangtools.yang.unified.doc.generator.GeneratorImpl.parseTargetPath(SchemaPath) | CORRECTNESS | DMI_DOH | 770 | Low |
D'oh! A nonsensical invocation of equal(Object, Object) in org.opendaylight.yangtools.yang.unified.doc.generator.GeneratorImpl.schemaPathToString(Module, SchemaPath, SchemaContext, DataNodeContainer) | CORRECTNESS | DMI_DOH | 2948 | Low |
D'oh! A nonsensical invocation of equal(Object, Object) in org.opendaylight.yangtools.yang.unified.doc.generator.GeneratorImpl.toBaseStmt(TypeDefinition) | CORRECTNESS | DMI_DOH | 3345 | Low |
D'oh! A nonsensical invocation of equal(Object, Object) in org.opendaylight.yangtools.yang.unified.doc.generator.GeneratorImpl.toLengthStmt(Collection) | CORRECTNESS | DMI_DOH | 3242 | Low |
D'oh! A nonsensical invocation of equal(Object, Object) in org.opendaylight.yangtools.yang.unified.doc.generator.GeneratorImpl.toRangeStmt(Collection) | CORRECTNESS | DMI_DOH | 3294 | Low |
Found reliance on default encoding in org.opendaylight.yangtools.yang.unified.doc.generator.GeneratorImpl.generateDocumentation(Module, SchemaContext): new java.io.OutputStreamWriter(OutputStream) | I18N | DM_DEFAULT_ENCODING | 127 | High |
Load of known null value in org.opendaylight.yangtools.yang.unified.doc.generator.GeneratorImpl.addedByInfo(SchemaNode) | STYLE | NP_LOAD_OF_KNOWN_NULL_VALUE | 3787 | Medium |
Load of known null value in org.opendaylight.yangtools.yang.unified.doc.generator.GeneratorImpl.asXmlExampleTag(DataSchemaNode, YangInstanceIdentifier) | STYLE | NP_LOAD_OF_KNOWN_NULL_VALUE | 3716 | Medium |
Load of known null value in org.opendaylight.yangtools.yang.unified.doc.generator.GeneratorImpl.isAddedBy(SchemaNode) | STYLE | NP_LOAD_OF_KNOWN_NULL_VALUE | 3798 | Medium |
Load of known null value in org.opendaylight.yangtools.yang.unified.doc.generator.GeneratorImpl.nodeName(SchemaNode) | STYLE | NP_LOAD_OF_KNOWN_NULL_VALUE | 3811 | Medium |
Load of known null value in org.opendaylight.yangtools.yang.unified.doc.generator.GeneratorImpl.printInfo(DataSchemaNode, int, YangInstanceIdentifier) | STYLE | NP_LOAD_OF_KNOWN_NULL_VALUE | 3733 | Medium |
Load of known null value in org.opendaylight.yangtools.yang.unified.doc.generator.GeneratorImpl.toLength(TypeDefinition) | STYLE | NP_LOAD_OF_KNOWN_NULL_VALUE | 3759 | Medium |
Load of known null value in org.opendaylight.yangtools.yang.unified.doc.generator.GeneratorImpl.toRange(TypeDefinition) | STYLE | NP_LOAD_OF_KNOWN_NULL_VALUE | 3776 | Medium |
Load of known null value in org.opendaylight.yangtools.yang.unified.doc.generator.GeneratorImpl.tree(DataSchemaNode, YangInstanceIdentifier) | STYLE | NP_LOAD_OF_KNOWN_NULL_VALUE | 3696 | Medium |
Possible null pointer dereference of _qName_1 in org.opendaylight.yangtools.yang.unified.doc.generator.GeneratorImpl.printBaseInfo(SchemaNode) | CORRECTNESS | NP_NULL_ON_SOME_PATH | 2074 | Medium |
Possible null pointer dereference of baseType in org.opendaylight.yangtools.yang.unified.doc.generator.GeneratorImpl.toBaseStmt(TypeDefinition) | CORRECTNESS | NP_NULL_ON_SOME_PATH | 3351 | Medium |
org.opendaylight.yangtools.yang.unified.doc.generator.GeneratorImpl.generateDocumentation(Module, SchemaContext) may fail to close stream on exception | BAD_PRACTICE | OS_OPEN_STREAM_EXCEPTION_PATH | 128 | Low |
Redundant nullcheck of node, which is known to be non-null in org.opendaylight.yangtools.yang.unified.doc.generator.GeneratorImpl.printInfo(SchemaNode, String) | STYLE | RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE | 2162 | Medium |
Redundant nullcheck of node which is known to be null in org.opendaylight.yangtools.yang.unified.doc.generator.GeneratorImpl.tree(DataSchemaNode, YangInstanceIdentifier) | STYLE | RCN_REDUNDANT_NULLCHECK_OF_NULL_VALUE | 3696 | Medium |
Exceptional return value of java.io.File.mkdirs() ignored in org.opendaylight.yangtools.yang.unified.doc.generator.GeneratorImpl.generate(SchemaContext, File, Set) | BAD_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 99 | Medium |
Call to method of static java.text.DateFormat in org.opendaylight.yangtools.yang.unified.doc.generator.GeneratorImpl.header(Module) | MT_CORRECTNESS | STCAL_INVOKE_ON_STATIC_DATE_FORMAT_INSTANCE | 1703 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
The class org.opendaylight.yangtools.yang.unified.doc.generator.GeneratorImpl$2 could be refactored into a named _static_ inner class | PERFORMANCE | SIC_INNER_SHOULD_BE_STATIC_ANON | 2998 | Low |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
D'oh! A nonsensical invocation of equal(Object, Object) in org.opendaylight.yangtools.yang.wadl.generator.WadlRestconfGenerator.resourceOperations() | CORRECTNESS | DMI_DOH | 306 | Low |
D'oh! A nonsensical invocation of equal(Object, Object) in org.opendaylight.yangtools.yang.wadl.generator.WadlRestconfGenerator.resourceParams() | CORRECTNESS | DMI_DOH | 438 | Low |
Found reliance on default encoding in org.opendaylight.yangtools.yang.wadl.generator.WadlRestconfGenerator.generate(SchemaContext, Set): new java.io.OutputStreamWriter(OutputStream) | I18N | DM_DEFAULT_ENCODING | 112 | High |
org.opendaylight.yangtools.yang.wadl.generator.WadlRestconfGenerator.generate(SchemaContext, Set) may fail to close stream on exception | BAD_PRACTICE | OS_OPEN_STREAM_EXCEPTION_PATH | 113 | Low |
Exceptional return value of java.io.File.mkdirs() ignored in new org.opendaylight.yangtools.yang.wadl.generator.WadlRestconfGenerator(File) | BAD_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 62 | Medium |