Jtest logo




Contents  Previous  Next  Index

CODSTA.PML


Put the `main()' method last

Description

This rule flags code where the `main()' method is not last item in the class definition.

This rule makes the program comply with various coding standards regarding the form of class definitions.

Example

 package CODSTA;
 
 class PML {
     public static void main (String args[]) {
     }
     void foo () {
     }
 }

Repair

List method `main()' last within the "class" definition.


Contents  Previous  Next  Index

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