Jtest logo




Contents  Previous  Next  Index

PB.MRUN


The Thread class is missing a 'run()' method

Description

This rule flags any thread class that does not have a `run()' method.

Classes that extend `Thread' should always have a `run()' method. If a `run()' method is not implemented, this class will not run as multi-threaded.

Example

 package PB;
 public class MRUN {
     public MRUN () {}
     // violation, no run method!
 }

Repair

Provide a `run()' method for this class.


Contents  Previous  Next  Index

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