PORT.PEER
Do not use `java.awt.peer.*' interfaces directly
Description
This rule flags code that uses a `java.awt.peer.*' interface directly.
The interfaces in the `java.awt.peer' are documented as used by AWT implementors only. Applications that use these interfaces directly are not portable.
Example
package PORT;
import java.awt.peer.ComponentPeer;
interface PEER extends ComponentPeer
{
void setName(String name);
}
Repair
Do not use `java.awt.peer' package directly.
Reference
Flanagan, David. Java in a Nutshell. O'Reilly, 1999, pp.190-192.
|