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.
|