![]() |
|
http://xradar.sourceforge.net |
| Statics Report - System: 1.0, Version: 0, Date: Today | Designed for use with Checkstyle, CKJM, FindBugs, JavaNCSS, JDepend, Macaron, PMD, PMD-CPD, Java2HTML and Ant. |
[Statics] classes-net.sourceforge.pmd.lang.java.rule.strings |
|
| [scorecard] [analysis] [explanations] | |
| {overview} {architecture} {design} {code} {test} {source control} {system specific} | |
| Package: net.sourceforge.pmd.lang.java.rule.strings | Class source |
| Methods: | Source statements: | Cyclomatic Complexity | |||||
|---|---|---|---|---|---|---|---|
|
Total: Total Declared: Public : Private : | 2 1 2 0 | Total : Per method : | 10 10 | Total : Per method : Per statement : | 6 6 0.6 |
||
| Inheritance: | Coupling: | ||||||
| Depth of inheritance tree (DIT): Number of Children (NOC): | 0 0 |
Efferent/Import Class Couplings (CBO/Ce): Afferent/Export Class Couplings (Ca): Response for a class (RFC): Lack of Cohesion in methods (LCOM): | 5 0 7 1 |
||||
| Javadocs: | Code violations: | Style Errors: | Unit Test Coverage | ||||
| Total : Per method : | 1 1 | Total : Per method : Per statement : |
NaN NaN | Total : Per method : Per statement : | 3 3 0.3 | Statement Test Coverage : Method Test Reference : | 0 0.5 |
| Method : | Javadocs: | Source statements: | Cyclometic complexity: | Test References: |
|---|---|---|---|---|
| visit(ASTLiteral,Object) | 0 | 9 | 6 | 0 |
| View line in source | Style Error | Column |
|---|---|---|
| 21 | Dans le commentaire javadoc de la classe, il manque une balise @author. | |
| 21 | Dans le commentaire javadoc de la classe, il manque une balise @version. | |
| 23 | Commentaire javadoc manquant. | 5 |
| Package: net.sourceforge.pmd.lang.java.rule.strings | Class source |
| Methods: | Source statements: | Cyclomatic Complexity | |||||
|---|---|---|---|---|---|---|---|
|
Total: Total Declared: Public : Private : | 4 3 3 1 | Total : Per method : | 89 29.67 | Total : Per method : Per statement : | 28 9.33 0.31 |
||
| Inheritance: | Coupling: | ||||||
| Depth of inheritance tree (DIT): Number of Children (NOC): | 0 0 |
Efferent/Import Class Couplings (CBO/Ce): Afferent/Export Class Couplings (Ca): Response for a class (RFC): Lack of Cohesion in methods (LCOM): | 10 0 50 0 |
||||
| Javadocs: | Code violations: | Style Errors: | Unit Test Coverage | ||||
| Total : Per method : | 0 0 | Total : Per method : Per statement : |
NaN NaN | Total : Per method : Per statement : | 13 4.33 0.15 | Statement Test Coverage : Method Test Reference : | 0 4 |
| Method : | Javadocs: | Source statements: | Cyclometic complexity: | Test References: |
|---|---|---|---|---|
| ExceptionParser.ExceptionParser(char) | 0 | 2 | 1 | 0 |
| ExceptionParser.parse(String) | 0 | 20 | 6 | 0 |
| AvoidDuplicateLiteralsRule() | 0 | 7 | 1 | 0 |
| visit(ASTCompilationUnit,Object) | 0 | 29 | 9 | 0 |
| visit(ASTLiteral,Object) | 0 | 18 | 11 | 0 |
| View line in source | Style Error | Column |
|---|---|---|
| 27 | Commentaire javadoc manquant. | |
| 29 | Commentaire javadoc manquant. | 5 |
| 32 | Commentaire javadoc manquant. | 5 |
| 35 | Commentaire javadoc manquant. | 5 |
| 38 | Commentaire javadoc manquant. | 5 |
| 41 | Commentaire javadoc manquant. | 5 |
| 44 | Commentaire javadoc manquant. | 5 |
| 47 | Commentaire javadoc manquant. | |
| 52 | Commentaire javadoc manquant. | 9 |
| 56 | Commentaire javadoc manquant. | 9 |
| 88 | Commentaire javadoc manquant. | 5 |
| 97 | Commentaire javadoc manquant. | 5 |
| 144 | Commentaire javadoc manquant. | 5 |
| Package: net.sourceforge.pmd.lang.java.rule.strings | Class source |
| Methods: | Source statements: | Cyclomatic Complexity | |||||
|---|---|---|---|---|---|---|---|
|
Total: Total Declared: Public : Private : | 2 2 0 | Total : Per method : |
NaN | Total : Per method : Per statement : |
NaN NaN |
||
| Inheritance: | Coupling: | ||||||
| Depth of inheritance tree (DIT): Number of Children (NOC): | 1 0 |
Efferent/Import Class Couplings (CBO/Ce): Afferent/Export Class Couplings (Ca): Response for a class (RFC): Lack of Cohesion in methods (LCOM): | 0 1 11 0 |
||||
| Javadocs: | Code violations: | Style Errors: | Unit Test Coverage | ||||
| Total : Per method : |
NaN | Total : Per method : Per statement : |
NaN NaN | Total : Per method : Per statement : |
NaN NaN | Statement Test Coverage : Method Test Reference : | 0 1.5 |
| Method : | Javadocs: | Source statements: | Cyclometic complexity: |
|---|
| Package: net.sourceforge.pmd.lang.java.rule.strings | Class source |
| Methods: | Source statements: | Cyclomatic Complexity | |||||
|---|---|---|---|---|---|---|---|
|
Total: Total Declared: Public : Private : | 11 10 2 9 | Total : Per method : | 136 13.6 | Total : Per method : Per statement : | 63 6.3 0.46 |
||
| Inheritance: | Coupling: | ||||||
| Depth of inheritance tree (DIT): Number of Children (NOC): | 0 0 |
Efferent/Import Class Couplings (CBO/Ce): Afferent/Export Class Couplings (Ca): Response for a class (RFC): Lack of Cohesion in methods (LCOM): | 19 0 58 43 |
||||
| Javadocs: | Code violations: | Style Errors: | Unit Test Coverage | ||||
| Total : Per method : | 6 0.6 | Total : Per method : Per statement : |
NaN NaN | Total : Per method : Per statement : | 4 0.4 0.03 | Statement Test Coverage : Method Test Reference : | 0 7 |
| Method : | Javadocs: | Source statements: | Cyclometic complexity: | Test References: |
|---|---|---|---|---|
| ConsecutiveLiteralAppendsRule() | 0 | 2 | 1 | 0 |
| visit(ASTVariableDeclaratorId,Object) | 0 | 45 | 19 | 0 |
| checkConstructor(ASTVariableDeclaratorId,Object) | 1 | 10 | 8 | 1 |
| processAdditive(Object,int,Node,Node) | 0 | 18 | 10 | 2 |
| isAdditive(Node) | 1 | 9 | 6 | 2 |
| getFirstParentBlock(Node) | 1 | 12 | 5 | 1 |
| getSwitchParent(Node,Node) | 1 | 12 | 4 | 1 |
| checkForViolation(Node,Object,int) | 1 | 4 | 2 | 2 |
| isAppendingStringLiteral(Node) | 0 | 5 | 3 | 1 |
| isStringBuffer(ASTVariableDeclaratorId) | 0 | 7 | 5 | 1 |
| View line in source of duplicated classes | Lines | Tokens | Start of code fragment |
|---|---|---|---|
| (225) net/sourceforge/pmd/lang/java/rule/strings/ConsecutiveLiteralAppendsRule
(279) net/sourceforge/pmd/lang/java/rule/strings/InsufficientStringBufferDeclarationRule | 36 | 83 |
}
/**
* Locate the block that the given node is in, if any
*
* @param node ..... |
| (258) net/sourceforge/pmd/lang/java/rule/strings/ConsecutiveLiteralAppendsRule
(314) net/sourceforge/pmd/lang/java/rule/strings/InsufficientStringBufferDeclarationRule | 14 | 78 |
private static Node getSwitchParent(Node parentNode, Node lastNode) {
int allChildren ..... |
| View line in source | Style Error | Column |
|---|---|---|
| 56 | Dans le commentaire javadoc de la classe, il manque une balise @author. | |
| 56 | Dans le commentaire javadoc de la classe, il manque une balise @version. | |
| 74 | Commentaire javadoc manquant. | 5 |
| 78 | Commentaire javadoc manquant. | 5 |
| Package: net.sourceforge.pmd.lang.java.rule.strings | Class source |
| Methods: | Source statements: | Cyclomatic Complexity | |||||
|---|---|---|---|---|---|---|---|
|
Total: Total Declared: Public : Private : | 3 2 3 0 | Total : Per method : | 9 4.5 | Total : Per method : Per statement : | 7 3.5 0.78 |
||
| Inheritance: | Coupling: | ||||||
| Depth of inheritance tree (DIT): Number of Children (NOC): | 0 0 |
Efferent/Import Class Couplings (CBO/Ce): Afferent/Export Class Couplings (Ca): Response for a class (RFC): Lack of Cohesion in methods (LCOM): | 4 0 14 3 |
||||
| Javadocs: | Code violations: | Style Errors: | Unit Test Coverage | ||||
| Total : Per method : | 2 1 | Total : Per method : Per statement : |
NaN NaN | Total : Per method : Per statement : | 3 1.5 0.33 | Statement Test Coverage : Method Test Reference : | 0 0 |
| Method : | Javadocs: | Source statements: | Cyclometic complexity: | Test References: |
|---|---|---|---|---|
| isTargetMethod(NameOccurrence) | 1 | 6 | 6 | 0 |
| appliesToClassName(String) | 0 | 2 | 1 | 0 |
| View line in source | Style Error | Column |
|---|---|---|
| 1 | La ligne ne correspond pas à la ligne d'en-tête attendue '^\/\*\*[ ]*$'. | |
| 24 | Dans le commentaire javadoc de la classe, il manque une balise @version. | |
| 45 | Commentaire javadoc manquant. | 5 |
| Package: net.sourceforge.pmd.lang.java.rule.strings | Class source |
| Methods: | Source statements: | Cyclomatic Complexity | |||||
|---|---|---|---|---|---|---|---|
|
Total: Total Declared: Public : Private : | 4 3 2 2 | Total : Per method : | 53 17.67 | Total : Per method : Per statement : | 39 13 0.74 |
||
| Inheritance: | Coupling: | ||||||
| Depth of inheritance tree (DIT): Number of Children (NOC): | 0 0 |
Efferent/Import Class Couplings (CBO/Ce): Afferent/Export Class Couplings (Ca): Response for a class (RFC): Lack of Cohesion in methods (LCOM): | 15 3 29 6 |
||||
| Javadocs: | Code violations: | Style Errors: | Unit Test Coverage | ||||
| Total : Per method : | 0 0 | Total : Per method : Per statement : |
NaN NaN | Total : Per method : Per statement : | 3 1 0.06 | Statement Test Coverage : Method Test Reference : | 0 1.5 |
| Method : | Javadocs: | Source statements: | Cyclometic complexity: | Test References: |
|---|---|---|---|---|
| visit(ASTAdditiveExpression,Object) | 0 | 33 | 22 | 0 |
| isInStringBufferOperation(Node,int,String) | 0 | 13 | 12 | 4 |
| isAllocatedStringBuffer(ASTAdditiveExpression) | 0 | 6 | 5 | 1 |
| View line in source | Style Error | Column |
|---|---|---|
| 31 | Commentaire javadoc manquant. | |
| 33 | Commentaire javadoc manquant. | 5 |
| 85 | Commentaire javadoc manquant. | 5 |
| Package: net.sourceforge.pmd.lang.java.rule.strings | Class source |
| Methods: | Source statements: | Cyclomatic Complexity | |||||
|---|---|---|---|---|---|---|---|
|
Total: Total Declared: Public : Private : | 13 11 2 11 | Total : Per method : | 182 16.55 | Total : Per method : Per statement : | 72 6.55 0.4 |
||
| Inheritance: | Coupling: | ||||||
| Depth of inheritance tree (DIT): Number of Children (NOC): | 0 0 |
Efferent/Import Class Couplings (CBO/Ce): Afferent/Export Class Couplings (Ca): Response for a class (RFC): Lack of Cohesion in methods (LCOM): | 17 0 60 76 |
||||
| Javadocs: | Code violations: | Style Errors: | Unit Test Coverage | ||||
| Total : Per method : | 4 0.36 | Total : Per method : Per statement : |
NaN NaN | Total : Per method : Per statement : | 2 0.18 0.01 | Statement Test Coverage : Method Test Reference : | 0 6 |
| Method : | Javadocs: | Source statements: | Cyclometic complexity: | Test References: |
|---|---|---|---|---|
| visit(ASTVariableDeclaratorId,Object) | 0 | 44 | 16 | 0 |
| storeBlockStatistics(Integer,int,Node) | 1 | 15 | 5 | 0 |
| processBlocks(Integer) | 0 | 10 | 3 | 0 |
| processAdditive(Node) | 0 | 11 | 6 | 1 |
| isLiteral(String) | 0 | 5 | 4 | 3 |
| processNode(Node) | 0 | 14 | 6 | 1 |
| getConstructorLength(Node,int) | 0 | 39 | 15 | 1 |
| getInitialLength(Node) | 0 | 12 | 7 | 1 |
| isAdditive(Node) | 0 | 2 | 1 | 1 |
| getFirstParentBlock(Node) | 1 | 12 | 5 | 1 |
| getSwitchParent(Node,Node) | 1 | 12 | 4 | 1 |
| View line in source of duplicated classes | Lines | Tokens | Start of code fragment |
|---|---|---|---|
| (225) net/sourceforge/pmd/lang/java/rule/strings/ConsecutiveLiteralAppendsRule
(279) net/sourceforge/pmd/lang/java/rule/strings/InsufficientStringBufferDeclarationRule | 36 | 83 |
}
/**
* Locate the block that the given node is in, if any
*
* @param node ..... |
| (258) net/sourceforge/pmd/lang/java/rule/strings/ConsecutiveLiteralAppendsRule
(314) net/sourceforge/pmd/lang/java/rule/strings/InsufficientStringBufferDeclarationRule | 14 | 78 |
private static Node getSwitchParent(Node parentNode, Node lastNode) {
int allChildren ..... |
| Bug: Category | Type | Abbreviation | Priority | Method Name | Field Name |
|---|---|---|---|---|---|
| CORRECTNESS | NP_NULL_ON_SOME_PATH | NP | 2 | getConstructorLength |
| View line in source | Style Error | Column |
|---|---|---|
| 37 | Dans le commentaire javadoc de la classe, il manque une balise @version. | |
| 47 | Commentaire javadoc manquant. | 5 |
| Package: net.sourceforge.pmd.lang.java.rule.strings | Class source |
| Methods: | Source statements: | Cyclomatic Complexity | |||||
|---|---|---|---|---|---|---|---|
|
Total: Total Declared: Public : Private : | 2 1 2 0 | Total : Per method : | 22 22 | Total : Per method : Per statement : | 15 15 0.68 |
||
| Inheritance: | Coupling: | ||||||
| Depth of inheritance tree (DIT): Number of Children (NOC): | 0 0 |
Efferent/Import Class Couplings (CBO/Ce): Afferent/Export Class Couplings (Ca): Response for a class (RFC): Lack of Cohesion in methods (LCOM): | 9 0 12 1 |
||||
| Javadocs: | Code violations: | Style Errors: | Unit Test Coverage | ||||
| Total : Per method : | 0 0 | Total : Per method : Per statement : |
NaN NaN | Total : Per method : Per statement : | 3 3 0.14 | Statement Test Coverage : Method Test Reference : | 0 0.5 |
| Method : | Javadocs: | Source statements: | Cyclometic complexity: | Test References: |
|---|---|---|---|---|
| visit(ASTAllocationExpression,Object) | 0 | 21 | 15 | 0 |
| View line in source | Style Error | Column |
|---|---|---|
| 1 | La ligne ne correspond pas à la ligne d'en-tête attendue '^\/\*\*[ ]*$'. | |
| 16 | Commentaire javadoc manquant. | |
| 18 | Commentaire javadoc manquant. | 5 |
| Package: net.sourceforge.pmd.lang.java.rule.strings | Class source |
| Methods: | Source statements: | Cyclomatic Complexity | |||||
|---|---|---|---|---|---|---|---|
|
Total: Total Declared: Public : Private : | 2 1 2 0 | Total : Per method : | 14 14 | Total : Per method : Per statement : | 11 11 0.79 |
||
| Inheritance: | Coupling: | ||||||
| Depth of inheritance tree (DIT): Number of Children (NOC): | 0 0 |
Efferent/Import Class Couplings (CBO/Ce): Afferent/Export Class Couplings (Ca): Response for a class (RFC): Lack of Cohesion in methods (LCOM): | 8 0 16 1 |
||||
| Javadocs: | Code violations: | Style Errors: | Unit Test Coverage | ||||
| Total : Per method : | 0 0 | Total : Per method : Per statement : |
NaN NaN | Total : Per method : Per statement : | 2 2 0.14 | Statement Test Coverage : Method Test Reference : | 0 0.5 |
| Method : | Javadocs: | Source statements: | Cyclometic complexity: | Test References: |
|---|---|---|---|---|
| visit(ASTVariableDeclaratorId,Object) | 0 | 13 | 11 | 0 |
| View line in source | Style Error | Column |
|---|---|---|
| 12 | Commentaire javadoc manquant. | |
| 14 | Commentaire javadoc manquant. | 5 |
| Package: net.sourceforge.pmd.lang.java.rule.strings | Class source |
| Methods: | Source statements: | Cyclomatic Complexity | |||||
|---|---|---|---|---|---|---|---|
|
Total: Total Declared: Public : Private : | 4 3 2 2 | Total : Per method : | 44 14.67 | Total : Per method : Per statement : | 29 9.67 0.66 |
||
| Inheritance: | Coupling: | ||||||
| Depth of inheritance tree (DIT): Number of Children (NOC): | 0 0 |
Efferent/Import Class Couplings (CBO/Ce): Afferent/Export Class Couplings (Ca): Response for a class (RFC): Lack of Cohesion in methods (LCOM): | 6 0 16 6 |
||||
| Javadocs: | Code violations: | Style Errors: | Unit Test Coverage | ||||
| Total : Per method : | 0 0 | Total : Per method : Per statement : |
NaN NaN | Total : Per method : Per statement : | 3 1 0.07 | Statement Test Coverage : Method Test Reference : | 0 1.5 |
| Method : | Javadocs: | Source statements: | Cyclometic complexity: | Test References: |
|---|---|---|---|---|
| visit(ASTPrimaryExpression,Object) | 0 | 17 | 12 | 0 |
| getBadPrefixOrNull(ASTPrimaryExpression,int) | 0 | 19 | 10 | 1 |
| getBadSuffixOrNull(ASTPrimaryExpression,int) | 0 | 7 | 7 | 1 |
| View line in source | Style Error | Column |
|---|---|---|
| 1 | La ligne ne correspond pas à la ligne d'en-tête attendue '^\/\*\*[ ]*$'. | |
| 10 | Commentaire javadoc manquant. | |
| 12 | Commentaire javadoc manquant. | 5 |
| Package: net.sourceforge.pmd.lang.java.rule.strings | Class source |
| Methods: | Source statements: | Cyclomatic Complexity | |||||
|---|---|---|---|---|---|---|---|
|
Total: Total Declared: Public : Private : | 5 3 1 4 | Total : Per method : | 9 3 | Total : Per method : Per statement : | 3 1 0.33 |
||
| Inheritance: | Coupling: | ||||||
| Depth of inheritance tree (DIT): Number of Children (NOC): | 0 0 |
Efferent/Import Class Couplings (CBO/Ce): Afferent/Export Class Couplings (Ca): Response for a class (RFC): Lack of Cohesion in methods (LCOM): | 3 0 7 8 |
||||
| Javadocs: | Code violations: | Style Errors: | Unit Test Coverage | ||||
| Total : Per method : | 2 0.67 | Total : Per method : Per statement : |
NaN NaN | Total : Per method : Per statement : | 4 1.33 0.44 | Statement Test Coverage : Method Test Reference : | 0 1 |
| Method : | Javadocs: | Source statements: | Cyclometic complexity: | Test References: |
|---|---|---|---|---|
| targetTypename() | 0 | 2 | 1 | 0 |
| methodNames() | 0 | 2 | 1 | 0 |
| isViolationArgument(Node) | 1 | 2 | 1 | 0 |
| View line in source | Style Error | Column |
|---|---|---|
| 1 | La ligne ne correspond pas à la ligne d'en-tête attendue '^\/\*\*[ ]*$'. | |
| 7 | Le commentaire javadoc est vide. | |
| 9 | Dans le commentaire javadoc de la classe, il manque une balise @author. | |
| 9 | Dans le commentaire javadoc de la classe, il manque une balise @version. |
| Package: net.sourceforge.pmd.lang.java.rule.strings | Class source |
| Methods: | Source statements: | Cyclomatic Complexity | |||||
|---|---|---|---|---|---|---|---|
|
Total: Total Declared: Public : Private : | 4 3 3 1 | Total : Per method : | 29 9.67 | Total : Per method : Per statement : | 17 5.67 0.59 |
||
| Inheritance: | Coupling: | ||||||
| Depth of inheritance tree (DIT): Number of Children (NOC): | 0 0 |
Efferent/Import Class Couplings (CBO/Ce): Afferent/Export Class Couplings (Ca): Response for a class (RFC): Lack of Cohesion in methods (LCOM): | 8 0 25 0 |
||||
| Javadocs: | Code violations: | Style Errors: | Unit Test Coverage | ||||
| Total : Per method : | 2 0.67 | Total : Per method : Per statement : |
NaN NaN | Total : Per method : Per statement : | 4 1.33 0.14 | Statement Test Coverage : Method Test Reference : | 0 1 |
| Method : | Javadocs: | Source statements: | Cyclometic complexity: | Test References: |
|---|---|---|---|---|
| visit(ASTCompilationUnit,Object) | 0 | 3 | 1 | 0 |
| visit(ASTName,Object) | 0 | 16 | 10 | 0 |
| isViolation(Node,Node) | 1 | 8 | 6 | 1 |
| View line in source | Style Error | Column |
|---|---|---|
| 1 | La ligne ne correspond pas à la ligne d'en-tête attendue '^\/\*\*[ ]*$'. | |
| 33 | Dans le commentaire javadoc de la classe, il manque une balise @version. | |
| 47 | Commentaire javadoc manquant. | 5 |
| 53 | Commentaire javadoc manquant. | 5 |
| Package: net.sourceforge.pmd.lang.java.rule.strings | Class source |
| Methods: | Source statements: | Cyclomatic Complexity | |||||
|---|---|---|---|---|---|---|---|
|
Total: Total Declared: Public : Private : | 3 2 2 1 | Total : Per method : | 37 18.5 | Total : Per method : Per statement : | 24 12 0.65 |
||
| Inheritance: | Coupling: | ||||||
| Depth of inheritance tree (DIT): Number of Children (NOC): | 0 0 |
Efferent/Import Class Couplings (CBO/Ce): Afferent/Export Class Couplings (Ca): Response for a class (RFC): Lack of Cohesion in methods (LCOM): | 9 0 18 3 |
||||
| Javadocs: | Code violations: | Style Errors: | Unit Test Coverage | ||||
| Total : Per method : | 0 0 | Total : Per method : Per statement : |
NaN NaN | Total : Per method : Per statement : | 3 1.5 0.08 | Statement Test Coverage : Method Test Reference : | 0 0.5 |
| Method : | Javadocs: | Source statements: | Cyclometic complexity: | Test References: |
|---|---|---|---|---|
| visit(ASTPrimaryPrefix,Object) | 0 | 20 | 15 | 0 |
| isPrimitive(Node) | 0 | 16 | 9 | 1 |
| View line in source | Style Error | Column |
|---|---|---|
| 1 | La ligne ne correspond pas à la ligne d'en-tête attendue '^\/\*\*[ ]*$'. | |
| 12 | Commentaire javadoc manquant. | |
| 14 | Commentaire javadoc manquant. | 5 |