Jtest logo




Contents  Previous  Next  Index

DBC.PROMPOST


All "protected" methods should have the '@post' contract

Description

This rule flags any "protected" class that does not have an `@post' contract in its Javadoc.

Example

 package DBC;
 protected class PROMPOST {
     /**
          @pre length > 0
       */
     protected void method (int length) {
         array = new [length];
         // do something.
     }
     private int[] array;
 }

Repair

Provide the `@post' contract in "protected" methods.


Contents  Previous  Next  Index

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