Analysis of Class : junit.framework.ComparisonCompactor (Includes summary list of methods in class) Home

Dashboard for Class : junit.framework.ComparisonCompactor
Cyclomatic Complexity

Summary of ComparisonCompactor
FeatureNumberValues
NameComparisonCompactor-
Number of Methods8-
LCOM0.32-
Average Cyclomatic Complexity1.88-
Number of Statements49-
Halstead Cumulative Bugs0.58-
Halstead Effort17598.66-
UnWeighted Class Size16-
Instance Variables8fActual (java.lang.String)
fExpected (java.lang.String)
DELTA_START (java.lang.String)
fPrefix (int)
fSuffix (int)
DELTA_END (java.lang.String)
ELLIPSIS (java.lang.String)
fContextLength (int)
Imported Packages0 -
Response For class8-
CBO2-
Maintainability Index115.51-
Cumulative Number of Comment Lines0-
Lines Of Code59-
Fan In1-
DIT1-
Maintainability Index (NC)115.51-
Specialization ratio0.00-
Reuse Ratio0.00-
COH0.41-
Local Method Calls6computeCommonSuffix (1)
findCommonPrefix (1)
findCommonSuffix (1)
areStringsEqual (1)
computeCommonPrefix (1)
compactString (2)
LCOM20.00-
Max Complexity3-
Halstead Cumulative Volume1733.06-
Hierarchy Method Calls0
Number of Queries5-
Fan Out1-
SuperClass Namejava.lang.Object-
SIX0.00-
External Method Calls0java.lang.Math.max (1)
java.lang.Math.min (2)
junit.framework.Assert.format (2)
java.lang.String.equals (1)
java.lang.String.charAt (4)
java.lang.String.substring (3)
java.lang.String.length (11)
Superclasses0 -
Total Complexity15-
Subclasses0 -
Message Passing Coupling0-
Number of Commands3-
Interfaces0 -
Cumulative Number of Comments0-
Halstead Cumulative Length385-
Modifiers0 -
Summary of methods in junit.framework.ComparisonCompactor
Methods in Class : junit.framework.ComparisonCompactor
NameCOMPNOCLNOSHLTHHVOCHEFFHBUGCREFXMETLMETNLOCNOCNOAMODHDIFVDECEXCTEXCRCASTTDNHVOLNANDVREFNOPRMDNNEXPLOOP
ComparisonCompactor1042214302.470.03100503153.610000083.761369030
areStringsEqual1021211124.540.0101030013.000000041.51527010
compact20757242706.770.09214901110.3620000261.342910280130
compactString30555252608.850.09122801110.2110000255.412613290150
computeCommonPrefix1022922905.260.0422030017.0000000129.3214715060
computeCommonSuffix10363263680.440.10230400112.4310000296.132913340190
findCommonPrefix30850242407.110.08130800110.5010001229.252110291101
findCommonSuffix30965264582.930.10020900115.0020001305.533015351171


Analysis of Method : ComparisonCompactor(int, String, String) in Class : junit.framework.ComparisonCompactor
FeatureNumberValues
NameComparisonCompactor-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements4-
Halstead Length22-
Halstead Vocabulary14-
Halstead Effort302.47-
Halstead Bugs0.03-
Classes Referenced1java.lang.String (2)
External Methods Called0
Local Methods Called0
Lines Of Code5-
Number of Comments0-
Arguments3contextLength (int)
expected (java.lang.String)
actual (java.lang.String)
Modifiers15private
static
final
private
static
final
private
static
final
private
private
private
private
private
public
Halstead Difficulty3.61-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume83.76-
Number of Operands13-
Variable References6fActual (1)
fExpected (1)
expected (1)
contextLength (1)
actual (1)
fContextLength (1)
Number of Operators9-
Max. depth of nesting0-
Number of Expressions3-
Number of Loops0-

Top of this page

Analysis of Method : areStringsEqual() in Class : junit.framework.ComparisonCompactor
FeatureNumberValues
NameareStringsEqual-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements2-
Halstead Length12-
Halstead Vocabulary11-
Halstead Effort124.54-
Halstead Bugs0.01-
Classes Referenced0
External Methods Called1java.lang.String.equals (1)
Local Methods Called0
Lines Of Code3-
Number of Comments0-
Arguments0 -
Modifiers1private
Halstead Difficulty3.00-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume41.51-
Number of Operands5-
Variable References2fActual (1)
fExpected (1)
Number of Operators7-
Max. depth of nesting0-
Number of Expressions1-
Number of Loops0-

Top of this page

Analysis of Method : compact(String) in Class : junit.framework.ComparisonCompactor
FeatureNumberValues
Namecompact-
Cyclomatic Complexity2-
Number of Comment Lines0-
Number of Statements7-
Halstead Length57-
Halstead Vocabulary24-
Halstead Effort2706.77-
Halstead Bugs0.09-
Classes Referenced2java.lang.String (4)
junit.framework.Assert (2)
External Methods Called1junit.framework.Assert.format (2)
Local Methods Called4findCommonPrefix (1)
findCommonSuffix (1)
areStringsEqual (1)
compactString (2)
Lines Of Code9-
Number of Comments0-
Arguments1message (java.lang.String)
Modifiers1public
Halstead Difficulty10.36-
Variable Declarations2expected (java.lang.String)
actual (java.lang.String)
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume261.34-
Number of Operands29-
Variable References10fActual (3)
fExpected (3)
expected (1)
message (2)
actual (1)
Number of Operators28-
Max. depth of nesting0-
Number of Expressions13-
Number of Loops0-

Top of this page

Analysis of Method : compactString(String) in Class : junit.framework.ComparisonCompactor
FeatureNumberValues
NamecompactString-
Cyclomatic Complexity3-
Number of Comment Lines0-
Number of Statements5-
Halstead Length55-
Halstead Vocabulary25-
Halstead Effort2608.85-
Halstead Bugs0.09-
Classes Referenced1java.lang.String (3)
External Methods Called2java.lang.String.substring (1)
java.lang.String.length (1)
Local Methods Called2computeCommonSuffix (1)
computeCommonPrefix (1)
Lines Of Code8-
Number of Comments0-
Arguments1source (java.lang.String)
Modifiers1private
Halstead Difficulty10.21-
Variable Declarations1result (java.lang.String)
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume255.41-
Number of Operands26-
Variable References13result (5)
DELTA_START (1)
source (2)
fPrefix (2)
DELTA_END (1)
fSuffix (2)
Number of Operators29-
Max. depth of nesting0-
Number of Expressions15-
Number of Loops0-

Top of this page

Analysis of Method : computeCommonPrefix() in Class : junit.framework.ComparisonCompactor
FeatureNumberValues
NamecomputeCommonPrefix-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements2-
Halstead Length29-
Halstead Vocabulary22-
Halstead Effort905.26-
Halstead Bugs0.04-
Classes Referenced2java.lang.Math (1)
java.lang.String (1)
External Methods Called2java.lang.String.substring (1)
java.lang.Math.max (1)
Local Methods Called0
Lines Of Code3-
Number of Comments0-
Arguments0 -
Modifiers1private
Halstead Difficulty7.00-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume129.32-
Number of Operands14-
Variable References7fExpected (1)
fPrefix (3)
ELLIPSIS (1)
fContextLength (2)
Number of Operators15-
Max. depth of nesting0-
Number of Expressions6-
Number of Loops0-

Top of this page

Analysis of Method : computeCommonSuffix() in Class : junit.framework.ComparisonCompactor
FeatureNumberValues
NamecomputeCommonSuffix-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements3-
Halstead Length63-
Halstead Vocabulary26-
Halstead Effort3680.44-
Halstead Bugs0.10-
Classes Referenced2java.lang.Math (1)
java.lang.String (1)
External Methods Called3java.lang.String.substring (1)
java.lang.Math.min (1)
java.lang.String.length (5)
Local Methods Called0
Lines Of Code4-
Number of Comments0-
Arguments0 -
Modifiers1private
Halstead Difficulty12.43-
Variable Declarations1end (int)
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume296.13-
Number of Operands29-
Variable References13end (1)
fExpected (6)
ELLIPSIS (1)
fSuffix (3)
fContextLength (2)
Number of Operators34-
Max. depth of nesting0-
Number of Expressions19-
Number of Loops0-

Top of this page

Analysis of Method : findCommonPrefix() in Class : junit.framework.ComparisonCompactor
FeatureNumberValues
NamefindCommonPrefix-
Cyclomatic Complexity3-
Number of Comment Lines0-
Number of Statements8-
Halstead Length50-
Halstead Vocabulary24-
Halstead Effort2407.11-
Halstead Bugs0.08-
Classes Referenced1java.lang.Math (1)
External Methods Called3java.lang.String.length (2)
java.lang.Math.min (1)
java.lang.String.charAt (2)
Local Methods Called0
Lines Of Code8-
Number of Comments0-
Arguments0 -
Modifiers1private
Halstead Difficulty10.50-
Variable Declarations1end (int)
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting1-
Halstead Volume229.25-
Number of Operands21-
Variable References10fActual (2)
end (1)
fExpected (2)
fPrefix (5)
Number of Operators29-
Max. depth of nesting1-
Number of Expressions10-
Number of Loops1-

Top of this page

Analysis of Method : findCommonSuffix() in Class : junit.framework.ComparisonCompactor
FeatureNumberValues
NamefindCommonSuffix-
Cyclomatic Complexity3-
Number of Comment Lines0-
Number of Statements9-
Halstead Length65-
Halstead Vocabulary26-
Halstead Effort4582.93-
Halstead Bugs0.10-
Classes Referenced0
External Methods Called2java.lang.String.length (3)
java.lang.String.charAt (2)
Local Methods Called0
Lines Of Code9-
Number of Comments0-
Arguments0 -
Modifiers1private
Halstead Difficulty15.00-
Variable Declarations2expectedSuffix (int)
actualSuffix (int)
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting1-
Halstead Volume305.53-
Number of Operands30-
Variable References15fActual (2)
fExpected (3)
expectedSuffix (4)
actualSuffix (3)
fPrefix (2)
fSuffix (1)
Number of Operators35-
Max. depth of nesting1-
Number of Expressions17-
Number of Loops1-

Top of this page

Top of this page Data Generated by JHawk - The Java Metrics tool Home