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.server.state

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

org.apache.qpid.server.state.StateAwareMethodListener

Package: org.apache.qpid.server.state | Class source

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


Method :Javadocs:Source statements:Cyclometic complexity:
methodReceived(AMQStateManager,B,int)
011


View line in sourceCode ViolationRule
Avoid unused imports such as 'org.apache.qpid.protocol.AMQMethodEvent' UnusedImports


View line in sourceStyle ErrorColumn
32Dans le commentaire javadoc de la classe, il manque une balise @param <B>.
32Il manque une espace avant '<'.42
32Il manque une espace après '<'.43
32Il manque une espace avant '>'.66
33'{' devrait être sur la ligne précédente.1
34La ligne excède 80 caractères.
34Commentaire javadoc manquant.5

org.apache.qpid.server.state.StateListener

Package: org.apache.qpid.server.state | 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):
2
1
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 :
4
2
1.33
Statement Test Coverage :
Method Test Reference :
0
1


Method :Javadocs:Source statements:Cyclometic complexity:Test References:
stateChanged(AMQState,AMQState)
0111
error(Throwable)
0111




View line in sourceStyle ErrorColumn
25Commentaire javadoc manquant.
26'{' devrait être sur la ligne précédente.1
27Commentaire javadoc manquant.5
29Commentaire javadoc manquant.5

org.apache.qpid.server.state.AMQState

Package: org.apache.qpid.server.state | Class source

Methods:Source statements:Cyclomatic Complexity
Total:
Total Declared:
Public :
Private :
4
0
2
2
Total :
Per method :
1
Infinity
Total :
Per method :
Per statement :
0
NaN
0
Inheritance:Coupling:
Depth of inheritance tree (DIT):
Number of Children (NOC):
2
0
Efferent/Import Class Couplings (CBO/Ce):
Afferent/Export Class Couplings (Ca):
Response for a class (RFC):
Lack of Cohesion in methods (LCOM):
0
9
7
4
Javadocs:Code violations:Style Errors:Unit Test Coverage
Total :
Per method :
0
NaN
Total :
Per method :
Per statement :

NaN
NaN
Total :
Per method :
Per statement :
9
Infinity
9
Statement Test Coverage :
Method Test Reference :
0
4.5


Method :Javadocs:Source statements:Cyclometic complexity:




View line in sourceStyle ErrorColumn
24La ligne excède 80 caractères.
28'{' devrait être sur la ligne précédente.1
29Commentaire javadoc manquant.5
30Commentaire javadoc manquant.5
31Commentaire javadoc manquant.5
32Commentaire javadoc manquant.5
33Commentaire javadoc manquant.5
34Commentaire javadoc manquant.5
35Commentaire javadoc manquant.5

org.apache.qpid.server.state.AMQStateManager

Package: org.apache.qpid.server.state | Class source

Methods:Source statements:Cyclomatic Complexity
Total:
Total Declared:
Public :
Private :
11
10
9
2
Total :
Per method :
42
4.2
Total :
Per method :
Per statement :
23
2.3
0.55
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):
17
39
35
15
Javadocs:Code violations:Style Errors:Unit Test Coverage
Total :
Per method :
1
0.1
Total :
Per method :
Per statement :
47
4.7
1.12
Total :
Per method :
Per statement :
82
8.2
1.95
Statement Test Coverage :
Method Test Reference :
0
1.11


Method :Javadocs:Source statements:Cyclometic complexity:Test References:
AMQStateManager(VirtualHostRegistry,AMQProtocolSession)
0411
getCurrentState()
0210
changeState(AMQState)
0627
error(Exception)
0420
methodReceived(B)
0870
checkChannel(B,AMQProtocolSession)
0360
addStateListener(StateListener)
0310
removeStateListener(StateListener)
0210
getVirtualHostRegistry()
0211
getProtocolSession()
02131


View line in sourceCode ViolationRule
A high number of imports can indicate a high degree of coupling within an object. ExcessiveImports
Avoid unused imports such as 'java.util.EnumMap' UnusedImports
Avoid unused imports such as 'java.util.HashMap' UnusedImports
Avoid unused imports such as 'java.util.Map' UnusedImports
Avoid unused imports such as 'org.apache.qpid.AMQConnectionException' UnusedImports
Avoid unused imports such as 'org.apache.qpid.server.handler.BasicAckMethodHandler' UnusedImports
Avoid unused imports such as 'org.apache.qpid.server.handler.BasicCancelMethodHandler' UnusedImports
Avoid unused imports such as 'org.apache.qpid.server.handler.BasicConsumeMethodHandler' UnusedImports
Avoid unused imports such as 'org.apache.qpid.server.handler.BasicGetMethodHandler' UnusedImports
Avoid unused imports such as 'org.apache.qpid.server.handler.BasicPublishMethodHandler' UnusedImports
Avoid unused imports such as 'org.apache.qpid.server.handler.BasicQosHandler' UnusedImports
Avoid unused imports such as 'org.apache.qpid.server.handler.BasicRecoverMethodHandler' UnusedImports
Avoid unused imports such as 'org.apache.qpid.server.handler.BasicRejectMethodHandler' UnusedImports
Avoid unused imports such as 'org.apache.qpid.server.handler.ChannelCloseHandler' UnusedImports
Avoid unused imports such as 'org.apache.qpid.server.handler.ChannelCloseOkHandler' UnusedImports
Avoid unused imports such as 'org.apache.qpid.server.handler.ChannelFlowHandler' UnusedImports
Avoid unused imports such as 'org.apache.qpid.server.handler.ChannelOpenHandler' UnusedImports
Avoid unused imports such as 'org.apache.qpid.server.handler.ConnectionCloseMethodHandler' UnusedImports
Avoid unused imports such as 'org.apache.qpid.server.handler.ConnectionCloseOkMethodHandler' UnusedImports
Avoid unused imports such as 'org.apache.qpid.server.handler.ConnectionOpenMethodHandler' UnusedImports
Avoid unused imports such as 'org.apache.qpid.server.handler.ConnectionSecureOkMethodHandler' UnusedImports
Avoid unused imports such as 'org.apache.qpid.server.handler.ConnectionStartOkMethodHandler' UnusedImports
Avoid unused imports such as 'org.apache.qpid.server.handler.ConnectionTuneOkMethodHandler' UnusedImports
Avoid unused imports such as 'org.apache.qpid.server.handler.ExchangeBoundHandler' UnusedImports
Avoid unused imports such as 'org.apache.qpid.server.handler.ExchangeDeclareHandler' UnusedImports
Avoid unused imports such as 'org.apache.qpid.server.handler.ExchangeDeleteHandler' UnusedImports
Avoid unused imports such as 'org.apache.qpid.server.handler.QueueBindHandler' UnusedImports
Avoid unused imports such as 'org.apache.qpid.server.handler.QueueDeclareHandler' UnusedImports
Avoid unused imports such as 'org.apache.qpid.server.handler.QueueDeleteHandler' UnusedImports
Avoid unused imports such as 'org.apache.qpid.server.handler.QueuePurgeHandler' UnusedImports
Avoid unused imports such as 'org.apache.qpid.server.handler.TxCommitHandler' UnusedImports
Avoid unused imports such as 'org.apache.qpid.server.handler.TxRollbackHandler' UnusedImports
Avoid unused imports such as 'org.apache.qpid.server.handler.TxSelectHandler' UnusedImports
Private field '_stateListeners' could be made final; it is only initialized in the declaration or constructor. ImmutableField
Parameter 'protocolSession' is not assigned and could be declared final MethodArgumentCouldBeFinal
Parameter 'virtualHostRegistry' is not assigned and could be declared final MethodArgumentCouldBeFinal
Parameter 'newState' is not assigned and could be declared final MethodArgumentCouldBeFinal
Parameter 'e' is not assigned and could be declared final MethodArgumentCouldBeFinal
Parameter 'evt' is not assigned and could be declared final MethodArgumentCouldBeFinal
Local variable 'dispatcher' could be declared final LocalVariableCouldBeFinal
Local variable 'body' could be declared final LocalVariableCouldBeFinal
These nested if statements could be combined CollapsibleIfStatements
Avoid unused private methods such as 'checkChannel(AMQMethodEvent,AMQProtocolSession)'. UnusedPrivateMethod
Parameter 'evt' is not assigned and could be declared final MethodArgumentCouldBeFinal
Parameter 'protocolSession' is not assigned and could be declared final MethodArgumentCouldBeFinal
Parameter 'listener' is not assigned and could be declared final MethodArgumentCouldBeFinal
Parameter 'listener' is not assigned and could be declared final MethodArgumentCouldBeFinal


View line in sourceStyle ErrorColumn
68La ligne excède 80 caractères.
72'{' devrait être sur la ligne précédente.1
73La ligne excède 80 caractères.
73Commentaire javadoc manquant.5
73Le nom '_logger' n'est pas conforme à l'expression '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'.33
75Commentaire javadoc manquant.5
75Le nom '_virtualHostRegistry' n'est pas conforme à l'expression '^[a-z][a-zA-Z0-9]*$'.39
76Commentaire javadoc manquant.5
76Le nom '_protocolSession' n'est pas conforme à l'expression '^[a-z][a-zA-Z0-9]*$'.38
77La première ligne doit se terminer avec un point.
78Le nom '_currentState' n'est pas conforme à l'expression '^[a-z][a-zA-Z0-9]*$'.22
81La ligne excède 80 caractères.
84La ligne excède 80 caractères.
85La ligne excède 80 caractères.
90La ligne excède 80 caractères.
90Commentaire javadoc manquant.5
90Il manque une espace avant '<'.32
90Il manque une espace après '<'.33
90Il manque une espace avant '>'.46
90Le nom '_stateListeners' n'est pas conforme à l'expression '^[a-z][a-zA-Z0-9]*$'.48
90Il manque une espace avant '<'.89
90Il manque une espace après '<'.90
90Il manque une espace avant '>'.103
90Il manque une espace après '>'.104
92La ligne excède 80 caractères.
92Commentaire javadoc manquant.5
104La ligne excède 80 caractères.
106La ligne excède 80 caractères.
107La ligne excède 80 caractères.
109La ligne excède 80 caractères.
112La ligne excède 80 caractères.
115La ligne excède 80 caractères.
116La ligne excède 80 caractères.
117La ligne excède 80 caractères.
122La ligne excède 80 caractères.
153La ligne excède 80 caractères.
159Commentaire javadoc manquant.5
160'{' devrait être sur la ligne précédente.5
164Commentaire javadoc manquant.5
165'{' devrait être sur la ligne précédente.5
166La ligne excède 80 caractères.
171'{' devrait être sur la ligne précédente.9
176Commentaire javadoc manquant.5
177'{' devrait être sur la ligne précédente.5
178La ligne excède 80 caractères.
180'{' devrait être sur la ligne précédente.9
185La ligne excède 80 caractères.
185Commentaire javadoc manquant.5
185Il manque une espace après '<'.13
185Il manque une espace avant '>'.36
185Il manque une espace avant '<'.75
185Il manque une espace après '<'.76
185Il manque une espace avant '>'.77
192Il manque une espace après 'if'.11
192Il manque une espace avant '=='.68
193'{' devrait être sur la ligne précédente.9
195Il manque une espace après 'if'.15
195Il y a une espace de trop après '!'.17
198'{' devrait être sur la ligne précédente.13
199La ligne excède 80 caractères.
208La ligne excède 80 caractères.
208Commentaire javadoc manquant.5
208Il manque une espace après '<'.14
208Il manque une espace avant '>'.37
208Il manque une espace avant '<'.71
208Il manque une espace après '<'.72
208Il manque une espace avant '>'.73
210'{' devrait être sur la ligne précédente.5
211La ligne excède 80 caractères.
215La ligne excède 80 caractères.
220La ligne excède 80 caractères.
224La ligne excède 80 caractères.
228La ligne excède 80 caractères.
232La ligne excède 80 caractères.
243Commentaire javadoc manquant.5
244'{' devrait être sur la ligne précédente.5
249Commentaire javadoc manquant.5
250'{' devrait être sur la ligne précédente.5
254Commentaire javadoc manquant.5
255'{' devrait être sur la ligne précédente.5
259Commentaire javadoc manquant.5
260'{' devrait être sur la ligne précédente.5

org.apache.qpid.server.state.IllegalStateTransitionException

Package: org.apache.qpid.server.state | Class source

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


Method :Javadocs:Source statements:Cyclometic complexity:Test References:
IllegalStateTransitionException(AMQState,Class)
0410
getOriginalState()
0210
getFrameClass()
0210


View line in sourceCode ViolationRule
Private field '_originalState' could be made final; it is only initialized in the declaration or constructor. ImmutableField
Private field '_frame' could be made final; it is only initialized in the declaration or constructor. ImmutableField
Parameter 'frame' is not assigned and could be declared final MethodArgumentCouldBeFinal
Parameter 'originalState' is not assigned and could be declared final MethodArgumentCouldBeFinal


View line in sourceStyle ErrorColumn
31'{' devrait être sur la ligne précédente.1
32Commentaire javadoc manquant.5
32Le nom '_originalState' n'est pas conforme à l'expression '^[a-z][a-zA-Z0-9]*$'.22
34Commentaire javadoc manquant.5
34Le nom '_frame' n'est pas conforme à l'expression '^[a-z][a-zA-Z0-9]*$'.19
36Commentaire javadoc manquant.5
38La ligne excède 80 caractères.
43Commentaire javadoc manquant.5
44'{' devrait être sur la ligne précédente.5
48Commentaire javadoc manquant.5
49'{' devrait être sur la ligne précédente.5