Menu

#43 OOMetrics does not report private methods

open
OO Metrics (7)
5
2012-09-15
2008-09-05
No

Just browse through the example on your website - the value for "Private Methods (PriM)" is always zero:

http://depfind.sourceforge.net/Samples/120.metrics.txt

Furthermore I discovered some more inconsistencies take the following class:

package some.package;

public class DependencyFinderTestClass {
private void privateMethod() {}
}

OOMetrics reports (marked [imho] wrong stuff with =>):

some.package.DependencyFinderTestClass
Character Count (CNCC): 25
Word Count (CNWC): 4
Single Lines of Code (SLOC): 3
=> Methods (M): 2
=> Public Methods (PuM): 1 (50%)
=> Protected Methods (ProM): 1 (50%)
=> Private Methods (PriM): 0 (0%)
Package Methods (PaM): 0 (0%)
Final Methods (FM): 0 (0%)
[...]

(Same in other output formats but this was best for filing a bug-report)

Cheers,
Thorsten

Discussion


Log in to post a comment.