The code intentions implementer uses the wrong "private" access when creating a final into an interface.
 
 
Example :
---------
 
1� Create the interface :
 
public interface SMTP_Constants
{
    int     OK_250                              =       250     ;
}

2� Create the class :
 
public class MyClass
{
    private int processData ( )
    {
        ...
        return SMTP_Constants.NOT_YET_IMPLEMENTED ;
     }
}
 
3� accept the code creation  
 
As SMTP_Constants.NOT_YET_IMPLEMENTED does not exists, IDEA offers to create it.
If you accept, it will produce
 
 
public interface SMTP_Constants
{
    int     OK_250                              =       250     ;
    private int NOT_YET_IMPLEMENTED;
}
 

That is wrong.
 
Alain Ravet

Reply via email to