The following document contains the results of Checkstyle 6.16 with odl_checks.xml ruleset. 
| Category | Rule | Violations | Severity |
|---|---|---|---|
| coding | IllegalCatch | 2 | |
| OverloadMethodsDeclarationOrder | 7 | ||
| VariableDeclarationUsageDistance | 17 | ||
| imports | CustomImportOrder
|
19 | |
| UnusedImports | 1 | ||
| indentation | Indentation
|
1 | |
| javadoc | JavadocStyle
|
6 | |
| misc | ArrayTypeStyle | 1 | |
| modifier | ModifierOrder | 2 | |
| naming | ConstantName | 1 | |
ParameterName
|
1 | ||
| sizes | LineLength
|
11 | |
| whitespace | EmptyLineSeparator
|
7 | |
| MethodParamPad | 4 | ||
| NoLineWrap | 1 | ||
OperatorWrap
|
8 | ||
WhitespaceAround
|
6 |
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| imports | CustomImportOrder | Wrong lexicographical order for 'com.google.common.base.Preconditions' import. Should be before 'javax.annotation.Nonnull'. | 18 | |
| imports | CustomImportOrder | Wrong lexicographical order for 'com.google.common.util.concurrent.ThreadFactoryBuilder' import. Should be before 'javax.annotation.Nonnull'. | 19 | |
| naming | ConstantName | Name 'threadFactory' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'. | 37 | |
| coding | IllegalCatch | Catching 'Exception' is not allowed. | 55 |
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| javadoc | JavadocStyle | First sentence should end with a period. | 14 |
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| javadoc | JavadocStyle | First sentence should end with a period. | 18 | |
| whitespace | EmptyLineSeparator | 'METHOD_DEF' should be separated from previous statement. | 32 | |
| coding | OverloadMethodsDeclarationOrder | Overload methods should not be split. Previous overloaded method located at line '32'. | 43 | |
| whitespace | EmptyLineSeparator | 'METHOD_DEF' should be separated from previous statement. | 44 | |
| coding | OverloadMethodsDeclarationOrder | Overload methods should not be split. Previous overloaded method located at line '41'. | 44 | |
| whitespace | EmptyLineSeparator | 'METHOD_DEF' should be separated from previous statement. | 45 | |
| whitespace | EmptyLineSeparator | 'METHOD_DEF' should be separated from previous statement. | 46 | |
| whitespace | EmptyLineSeparator | 'METHOD_DEF' should be separated from previous statement. | 47 | |
| whitespace | EmptyLineSeparator | 'METHOD_DEF' should be separated from previous statement. | 48 | |
| whitespace | EmptyLineSeparator | 'METHOD_DEF' should be separated from previous statement. | 49 |
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| whitespace | NoLineWrap | import statement should not be line-wrapped. | 19 |
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| sizes | LineLength | Line is longer than 120 characters (found 136). | 44 | |
| sizes | LineLength | Line is longer than 120 characters (found 128). | 48 | |
| sizes | LineLength | Line is longer than 120 characters (found 122). | 98 |
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| javadoc | SummaryJavadoc | First sentence of Javadoc is incomplete (period is missing) or not present. | 14 | |
| javadoc | JavadocStyle | First sentence should end with a period. | 14 |
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| javadoc | SummaryJavadoc | First sentence of Javadoc is incomplete (period is missing) or not present. | 17 | |
| javadoc | JavadocStyle | First sentence should end with a period. | 17 |
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| whitespace | OperatorWrap | '||' should be on a new line. | 127 | |
| sizes | LineLength | Line is longer than 120 characters (found 121). | 128 | |
| whitespace | OperatorWrap | '||' should be on a new line. | 128 | |
| sizes | LineLength | Line is longer than 120 characters (found 121). | 129 | |
| whitespace | OperatorWrap | '&&' should be on a new line. | 201 | |
| whitespace | OperatorWrap | '&&' should be on a new line. | 202 | |
| whitespace | OperatorWrap | '&&' should be on a new line. | 203 | |
| whitespace | OperatorWrap | '&&' should be on a new line. | 221 | |
| whitespace | OperatorWrap | '&&' should be on a new line. | 222 | |
| whitespace | OperatorWrap | '&&' should be on a new line. | 223 | |
| whitespace | WhitespaceAround | WhitespaceAround: '-' is not preceded with whitespace. | 256 | |
| whitespace | WhitespaceAround | WhitespaceAround: '-' is not followed by whitespace. | 256 |
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| imports | CustomImportOrder | Wrong lexicographical order for 'org.opendaylight.netvirt.openstack.netvirt.api.Southbound' import. Should be before 'org.opendaylight.netvirt.openstack.netvirt.sfc.NshUtils'. | 21 | |
| imports | CustomImportOrder | Wrong lexicographical order for 'org.opendaylight.netvirt.openstack.netvirt.sfc.INetvirtSfcOF13Provider' import. Should be before 'org.opendaylight.netvirt.openstack.netvirt.sfc.NshUtils'. | 22 | |
| imports | CustomImportOrder | Wrong lexicographical order for 'org.opendaylight.netvirt.openstack.netvirt.sfc.ISfcClassifierService' import. Should be before 'org.opendaylight.netvirt.openstack.netvirt.sfc.NshUtils'. | 23 | |
| javadoc | JavadocStyle | First sentence should end with a period. | 56 | |
| coding | OverloadMethodsDeclarationOrder | Overload methods should not be split. Previous overloaded method located at line '90'. | 113 | |
| coding | OverloadMethodsDeclarationOrder | Overload methods should not be split. Previous overloaded method located at line '94'. | 135 | |
| whitespace | MethodParamPad | '(' is preceded with whitespace. | 259 | |
| whitespace | MethodParamPad | '(' is preceded with whitespace. | 283 | |
| naming | ParameterName | Parameter name 's' must match pattern '^[a-z][a-z0-9][a-zA-Z0-9]*$'. | 334 |
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| imports | CustomImportOrder | Wrong lexicographical order for 'org.opendaylight.netvirt.openstack.netvirt.api.Southbound' import. Should be before 'org.opendaylight.netvirt.openstack.netvirt.sfc.NshUtils'. | 18 | |
| modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 53 | |
| modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 54 | |
| coding | VariableDeclarationUsageDistance | Distance between variable 'actionList' declaration and its first usage is 4, but allowed 3. Consider to make that variable as final if you still need to store its value in advance (before method calls that might do side effect on original value). | 125 | |
| coding | VariableDeclarationUsageDistance | Distance between variable 'isb' declaration and its first usage is 13, but allowed 3. Consider to make that variable as final if you still need to store its value in advance (before method calls that might do side effect on original value). | 208 | |
| coding | VariableDeclarationUsageDistance | Distance between variable 'instructions' declaration and its first usage is 8, but allowed 3. Consider to make that variable as final if you still need to store its value in advance (before method calls that might do side effect on original value). | 209 | |
| coding | VariableDeclarationUsageDistance | Distance between variable 'actionList' declaration and its first usage is 4, but allowed 3. Consider to make that variable as final if you still need to store its value in advance (before method calls that might do side effect on original value). | 213 |
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| imports | CustomImportOrder | Wrong lexicographical order for 'org.opendaylight.netvirt.openstack.netvirt.providers.ConfigInterface' import. Should be before 'org.opendaylight.netvirt.openstack.netvirt.sfc.NshUtils'. | 15 | |
| imports | CustomImportOrder | Wrong lexicographical order for 'org.opendaylight.netvirt.openstack.netvirt.sfc.ISfcClassifierService' import. Should be before 'org.opendaylight.netvirt.openstack.netvirt.sfc.NshUtils'. | 16 | |
| sizes | LineLength | Line is longer than 120 characters (found 146). | 44 | |
| sizes | LineLength | Line is longer than 120 characters (found 164). | 54 | |
| sizes | LineLength | Line is longer than 120 characters (found 141). | 59 | |
| sizes | LineLength | Line is longer than 120 characters (found 147). | 64 | |
| sizes | LineLength | Line is longer than 120 characters (found 131). | 74 | |
| sizes | LineLength | Line is longer than 120 characters (found 124). | 79 |
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| imports | CustomImportOrder | Wrong lexicographical order for 'org.opendaylight.yang.gen.v1.urn.cisco.params.xml.ns.yang.sfc.rsp.rev140701.CreateRenderedPathInput' import. Should be before 'org.opendaylight.yang.gen.v1.urn.cisco.params.xml.ns.yang.sfc.sl.rev140701.data.plane.locator.locator.type.Ip'. | 28 | |
| imports | CustomImportOrder | Wrong lexicographical order for 'org.opendaylight.yang.gen.v1.urn.cisco.params.xml.ns.yang.sfc.rsp.rev140701.CreateRenderedPathInputBuilder' import. Should be before 'org.opendaylight.yang.gen.v1.urn.cisco.params.xml.ns.yang.sfc.sl.rev140701.data.plane.locator.locator.type.Ip'. | 29 | |
| imports | CustomImportOrder | Wrong lexicographical order for 'org.opendaylight.yang.gen.v1.urn.cisco.params.xml.ns.yang.sfc.rsp.rev140701.rendered.service.path.first.hop.info.RenderedServicePathFirstHop' import. Should be before 'org.opendaylight.yang.gen.v1.urn.cisco.params.xml.ns.yang.sfc.sl.rev140701.data.plane.locator.locator.type.Ip'. | 30 | |
| imports | CustomImportOrder | Wrong lexicographical order for 'org.opendaylight.yang.gen.v1.urn.cisco.params.xml.ns.yang.sfc.rsp.rev140701.rendered.service.paths.RenderedServicePath' import. Should be before 'org.opendaylight.yang.gen.v1.urn.cisco.params.xml.ns.yang.sfc.sl.rev140701.data.plane.locator.locator.type.Ip'. | 31 | |
| imports | CustomImportOrder | Wrong lexicographical order for 'org.opendaylight.yang.gen.v1.urn.cisco.params.xml.ns.yang.sfc.rsp.rev140701.rendered.service.paths.rendered.service.path.RenderedServicePathHop' import. Should be before 'org.opendaylight.yang.gen.v1.urn.cisco.params.xml.ns.yang.sfc.sl.rev140701.data.plane.locator.locator.type.Ip'. | 32 | |
| imports | CustomImportOrder | Wrong lexicographical order for 'org.opendaylight.yang.gen.v1.urn.cisco.params.xml.ns.yang.sfc.sf.rev140701.service.functions.ServiceFunction' import. Should be before 'org.opendaylight.yang.gen.v1.urn.cisco.params.xml.ns.yang.sfc.sl.rev140701.data.plane.locator.locator.type.Ip'. | 33 | |
| imports | CustomImportOrder | Wrong lexicographical order for 'org.opendaylight.yang.gen.v1.urn.cisco.params.xml.ns.yang.sfc.sff.rev140701.service.function.forwarders.ServiceFunctionForwarder' import. Should be before 'org.opendaylight.yang.gen.v1.urn.cisco.params.xml.ns.yang.sfc.sl.rev140701.data.plane.locator.locator.type.Ip'. | 34 | |
| imports | CustomImportOrder | Wrong lexicographical order for 'org.opendaylight.yang.gen.v1.urn.cisco.params.xml.ns.yang.sfc.sfp.rev140701.service.function.paths.ServiceFunctionPath' import. Should be before 'org.opendaylight.yang.gen.v1.urn.cisco.params.xml.ns.yang.sfc.sl.rev140701.data.plane.locator.locator.type.Ip'. | 35 | |
| imports | UnusedImports | Unused import - org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.ovsdb.node.attributes.ConnectionInfo. | 46 | |
| coding | OverloadMethodsDeclarationOrder | Overload methods should not be split. Previous overloaded method located at line '87'. | 98 | |
| coding | OverloadMethodsDeclarationOrder | Overload methods should not be split. Previous overloaded method located at line '93'. | 105 | |
| whitespace | WhitespaceAround | WhitespaceAround: '-' is not preceded with whitespace. | 177 | |
| whitespace | WhitespaceAround | WhitespaceAround: '-' is not followed by whitespace. | 177 | |
| whitespace | MethodParamPad | '(' is preceded with whitespace. | 382 | |
| whitespace | MethodParamPad | '(' is preceded with whitespace. | 407 |
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| javadoc | SummaryJavadoc | First sentence of Javadoc is incomplete (period is missing) or not present. | 32 | |
| javadoc | JavadocStyle | First sentence should end with a period. | 32 |
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| whitespace | WhitespaceAround | WhitespaceAround: '=' is not preceded with whitespace. | 31 | |
| whitespace | WhitespaceAround | WhitespaceAround: '=' is not preceded with whitespace. | 32 |
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| imports | CustomImportOrder | Wrong lexicographical order for 'org.opendaylight.netvirt.openstack.netvirt.api.Constants' import. Should be before 'org.opendaylight.netvirt.openstack.netvirt.sfc.NshUtils'. | 24 | |
| imports | CustomImportOrder | Wrong lexicographical order for 'org.opendaylight.netvirt.openstack.netvirt.providers.ConfigInterface' import. Should be before 'org.opendaylight.netvirt.openstack.netvirt.sfc.NshUtils'. | 25 | |
| imports | CustomImportOrder | Wrong lexicographical order for 'org.opendaylight.netvirt.openstack.netvirt.sfc.ISfcClassifierService' import. Should be before 'org.opendaylight.netvirt.openstack.netvirt.sfc.NshUtils'. | 26 | |
| coding | VariableDeclarationUsageDistance | Distance between variable 'isb' declaration and its first usage is 4, but allowed 3. Consider to make that variable as final if you still need to store its value in advance (before method calls that might do side effect on original value). | 193 | |
| coding | VariableDeclarationUsageDistance | Distance between variable 'isb' declaration and its first usage is 4, but allowed 3. Consider to make that variable as final if you still need to store its value in advance (before method calls that might do side effect on original value). | 225 | |
| coding | VariableDeclarationUsageDistance | Distance between variable 'isb' declaration and its first usage is 18, but allowed 3. Consider to make that variable as final if you still need to store its value in advance (before method calls that might do side effect on original value). | 257 | |
| coding | VariableDeclarationUsageDistance | Distance between variable 'instructions' declaration and its first usage is 17, but allowed 3. Consider to make that variable as final if you still need to store its value in advance (before method calls that might do side effect on original value). | 258 | |
| coding | VariableDeclarationUsageDistance | Distance between variable 'isb' declaration and its first usage is 5, but allowed 3. Consider to make that variable as final if you still need to store its value in advance (before method calls that might do side effect on original value). | 370 | |
| coding | VariableDeclarationUsageDistance | Distance between variable 'instructions' declaration and its first usage is 4, but allowed 3. Consider to make that variable as final if you still need to store its value in advance (before method calls that might do side effect on original value). | 371 | |
| coding | VariableDeclarationUsageDistance | Distance between variable 'isb' declaration and its first usage is 5, but allowed 3. Consider to make that variable as final if you still need to store its value in advance (before method calls that might do side effect on original value). | 403 | |
| coding | VariableDeclarationUsageDistance | Distance between variable 'instructions' declaration and its first usage is 4, but allowed 3. Consider to make that variable as final if you still need to store its value in advance (before method calls that might do side effect on original value). | 404 | |
| coding | VariableDeclarationUsageDistance | Distance between variable 'ib' declaration and its first usage is 34, but allowed 3. Consider to make that variable as final if you still need to store its value in advance (before method calls that might do side effect on original value). | 437 | |
| coding | VariableDeclarationUsageDistance | Distance between variable 'isb' declaration and its first usage is 38, but allowed 3. Consider to make that variable as final if you still need to store its value in advance (before method calls that might do side effect on original value). | 438 | |
| coding | VariableDeclarationUsageDistance | Distance between variable 'instructions' declaration and its first usage is 37, but allowed 3. Consider to make that variable as final if you still need to store its value in advance (before method calls that might do side effect on original value). | 439 | |
| coding | VariableDeclarationUsageDistance | Distance between variable 'aab' declaration and its first usage is 33, but allowed 3. Consider to make that variable as final if you still need to store its value in advance (before method calls that might do side effect on original value). | 440 | |
| coding | VariableDeclarationUsageDistance | Distance between variable 'actionList' declaration and its first usage is 4, but allowed 3. Consider to make that variable as final if you still need to store its value in advance (before method calls that might do side effect on original value). | 442 | |
| misc | ArrayTypeStyle | Array brackets at illegal position. | 547 | |
| indentation | Indentation | 'array initialization' child have incorrect indentation level 12, expected level should be one of the following: 8, 39, 42. | 548 | |
| coding | OverloadMethodsDeclarationOrder | Overload methods should not be split. Previous overloaded method located at line '119'. | 564 | |
| coding | IllegalCatch | Catching 'Exception' is not allowed. | 572 |