Jtest logo




Contents  Previous  Next  Index

METRICS.TRET


Number of "return" statements

Description

This metric measures the number of "return" statements in a class.

Methods with multiple return points are easy to program, but they are more difficult to debug and maintain.

By default, Jtest reports an error if this metric's value is not between 0 and 1.

Note: This rule only checks explicit "return" statements. It does not test abstract or native methods or any methods that are declared in the interface.


Contents  Previous  Next  Index

ParaSoft logo
(888) 305-0041 info@parasoft.com Copyright © 1996-2001 ParaSoft