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.thread

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

org.apache.qpid.thread.ThreadFactory

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

Methods:Source statements:Cyclomatic Complexity
Total:
Total Declared:
Public :
Private :
2
2
2
0
Total :
Per method :
3
1.5
Total :
Per method :
Per statement :
2
1
0.67
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
14
2
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 :
6
3
2
Statement Test Coverage :
Method Test Reference :
0
0.5


Method :Javadocs:Source statements:Cyclometic complexity:Test References:
createThread(Runnable)
01113
createThread(Runnable,int)
0110




View line in sourceStyle ErrorColumn
3Commentaire javadoc manquant.
4'{' devrait être sur la ligne précédente.1
5Commentaire javadoc manquant.5
5Mot-clef 'public' redondant.5
6Commentaire javadoc manquant.5
6Mot-clef 'public' redondant.5

org.apache.qpid.thread.DefaultThreadFactory

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

Methods:Source statements:Cyclomatic Complexity
Total:
Total Declared:
Public :
Private :
3
2
3
0
Total :
Per method :
7
3.5
Total :
Per method :
Per statement :
2
1
0.29
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):
1
0
6
3
Javadocs:Code violations:Style Errors:Unit Test Coverage
Total :
Per method :
0
0
Total :
Per method :
Per statement :
4
2
0.57
Total :
Per method :
Per statement :
6
3
0.86
Statement Test Coverage :
Method Test Reference :
0
0


Method :Javadocs:Source statements:Cyclometic complexity:Test References:
createThread(Runnable)
0210
createThread(Runnable,int)
0410


View line in sourceCode ViolationRule
Parameter 'r' is not assigned and could be declared final MethodArgumentCouldBeFinal
Parameter 'priority' is not assigned and could be declared final MethodArgumentCouldBeFinal
Parameter 'r' is not assigned and could be declared final MethodArgumentCouldBeFinal
Local variable 't' could be declared final LocalVariableCouldBeFinal


View line in sourceStyle ErrorColumn
3Commentaire javadoc manquant.
4'{' devrait être sur la ligne précédente.1
6Commentaire javadoc manquant.5
7'{' devrait être sur la ligne précédente.5
11Commentaire javadoc manquant.5
12'{' devrait être sur la ligne précédente.5

org.apache.qpid.thread.RealtimeThreadFactory

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

Methods:Source statements:Cyclomatic Complexity
Total:
Total Declared:
Public :
Private :
3
3
3
0
Total :
Per method :
22
7.33
Total :
Per method :
Per statement :
3
1
0.14
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):
1
0
10
0
Javadocs:Code violations:Style Errors:Unit Test Coverage
Total :
Per method :
0
0
Total :
Per method :
Per statement :
16
5.33
0.73
Total :
Per method :
Per statement :
29
9.67
1.32
Statement Test Coverage :
Method Test Reference :
0
1.67


Method :Javadocs:Source statements:Cyclometic complexity:Test References:
RealtimeThreadFactory()
01210
createThread(Runnable)
0210
createThread(Runnable,int)
0311


View line in sourceCode ViolationRule
Perhaps 'threadClass' could be replaced by a local variable. SingularField
Private field 'threadClass' could be made final; it is only initialized in the declaration or constructor. ImmutableField
Private field 'threadConstructor' could be made final; it is only initialized in the declaration or constructor. ImmutableField
Private field 'priorityParameterConstructor' could be made final; it is only initialized in the declaration or constructor. ImmutableField
Private field 'defaultRTThreadPriority' could be made final; it is only initialized in the declaration or constructor. ImmutableField
Local variable 'schedulingParametersClass' could be declared final LocalVariableCouldBeFinal
Local variable 'releaseParametersClass' could be declared final LocalVariableCouldBeFinal
Local variable 'memoryParametersClass' could be declared final LocalVariableCouldBeFinal
Local variable 'memoryAreaClass' could be declared final LocalVariableCouldBeFinal
Local variable 'processingGroupParametersClass' could be declared final LocalVariableCouldBeFinal
Local variable 'paramTypes' could be declared final LocalVariableCouldBeFinal
Local variable 'priorityParameterClass' could be declared final LocalVariableCouldBeFinal
Parameter 'r' is not assigned and could be declared final MethodArgumentCouldBeFinal
Parameter 'priority' is not assigned and could be declared final MethodArgumentCouldBeFinal
Parameter 'r' is not assigned and could be declared final MethodArgumentCouldBeFinal
Local variable 'priorityParams' could be declared final LocalVariableCouldBeFinal


View line in sourceStyle ErrorColumn
5Commentaire javadoc manquant.
6'{' devrait être sur la ligne précédente.1
7Commentaire javadoc manquant.5
8Commentaire javadoc manquant.5
9Commentaire javadoc manquant.5
10Commentaire javadoc manquant.5
12Commentaire javadoc manquant.5
13'{' devrait être sur la ligne précédente.5
14La ligne excède 80 caractères.
14Il manque une espace après ','.80
17La ligne excède 80 caractères.
18La ligne excède 80 caractères.
19La ligne excède 80 caractères.
21La ligne excède 80 caractères.
32La ligne excède 80 caractères.
33La ligne excède 80 caractères.
36Commentaire javadoc manquant.5
37'{' devrait être sur la ligne précédente.5
38Il manque une espace après ','.31
41Commentaire javadoc manquant.5
42'{' devrait être sur la ligne précédente.5
43La ligne excède 80 caractères.
44La ligne excède 80 caractères.
44Il manque une espace après 'cast'.24
44Il manque une espace après ','.69
44Il manque une espace après ','.74
44Il manque une espace après ','.79
44Il manque une espace après ','.84
44Il manque une espace après ','.89

org.apache.qpid.thread.Threading

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

Methods:Source statements:Cyclomatic Complexity
Total:
Total Declared:
Public :
Private :
3
1
2
1
Total :
Per method :
9
9
Total :
Per method :
Per statement :
1
1
0.11
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):
1
11
8
1
Javadocs:Code violations:Style Errors:Unit Test Coverage
Total :
Per method :
0
0
Total :
Per method :
Per statement :
2
2
0.22
Total :
Per method :
Per statement :
12
12
1.33
Statement Test Coverage :
Method Test Reference :
0
1


Method :Javadocs:Source statements:Cyclometic complexity:Test References:
getThreadFactory()
02113


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
Local variable 'threadFactoryClass' could be declared final LocalVariableCouldBeFinal


View line in sourceStyle ErrorColumn
3Commentaire javadoc manquant.
4'{' devrait être sur la ligne précédente.1
5Commentaire javadoc manquant.5
9'{' devrait être sur la ligne précédente.9
12La ligne excède 80 caractères.
14Il manque une espace après 'cast'.44
15'}' devrait être sur la même ligne.9
16Il manque une espace après 'catch'.14
17'{' devrait être sur la ligne précédente.9
18Il manque une espace après ','.74
22Commentaire javadoc manquant.5
23'{' devrait être sur la ligne précédente.5