http://xradar.sourceforge.net


Statics Report - System: 1.0, Version: 0, Date: TodayDesigned for use with Checkstyle, CKJM, FindBugs, JavaNCSS, JDepend, Macaron, PMD, PMD-CPD, Java2HTML and Ant.

[Statics] classes-org.apache.qpid.njms

[scorecard] [analysis] [explanations]
{overview} {architecture} {design} {code} {test} {source control} {system specific}

org.apache.qpid.njms.ExceptionHelper

Package: org.apache.qpid.njms | Class source

Methods:Source statements:Cyclomatic Complexity
Total:
Total Declared:
Public :
Private :
3
2
3
0
Total :
Per method :
17
8.5
Total :
Per method :
Per statement :
4
2
0.24
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):
2
0
12
3
Javadocs:Code violations:Style Errors:Unit Test Coverage
Total :
Per method :
1
0.5
Total :
Per method :
Per statement :
7
3.5
0.41
Total :
Per method :
Per statement :
15
7.5
0.88
Statement Test Coverage :
Method Test Reference :
0
0


Method :Javadocs:Source statements:Cyclometic complexity:Test References:
convertQpidExceptionToJMSException(Exception)
01230
convertQpidExceptionToXAException(QpidException)
0410


View line in sourceCode ViolationRule
All methods are static. Consider using Singleton instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. UseSingleton
Parameter 'exception' is not assigned and could be declared final MethodArgumentCouldBeFinal
Avoid if (x != y) ..; else ..; ConfusingTernary
Parameter 'exception' is not assigned and could be declared final MethodArgumentCouldBeFinal
Avoid unused local variables such as 'qpidErrorCode'. UnusedLocalVariable
Local variable 'qpidErrorCode' could be declared final LocalVariableCouldBeFinal
Local variable 'xaCode' could be declared final LocalVariableCouldBeFinal


Bug: CategoryTypeAbbreviationPriorityMethod NameField Name
STYLEDLS_DEAD_LOCAL_STOREDLS2convertQpidExceptionToXAException
View line in sourceStyle ErrorColumn
25La première ligne doit se terminer avec un point.
29'{' devrait être sur la ligne précédente.1
30La ligne excède 80 caractères.
30Commentaire javadoc manquant.5
30Le mot-clef 'public' n'apparaît pas dans l'ordre préconisé par les JLS.12
34'{' devrait être sur la ligne précédente.9
36'{' devrait être sur la ligne précédente.13
37La ligne excède 80 caractères.
38'}' devrait être sur la même ligne.13
40'{' devrait être sur la ligne précédente.13
45'}' devrait être sur la même ligne.9
47'{' devrait être sur la ligne précédente.9
53La ligne excède 80 caractères.
53Commentaire javadoc manquant.5
53Le mot-clef 'public' n'apparaît pas dans l'ordre préconisé par les JLS.12