If you run "Inspect code" on TK2, and accept the suggestion to make
"i_canBePrivate" private, IDEA will also make
        "i_mustBePublic" private;
, by rewriting
    public int
        i_canBePrivate,
        i_mustBePublic ;
to:
    private int
        i_canBePrivate,
        i_mustBePublic ;


Code:
------

public class TK2
{
    public int
        i_canBePrivate,
        i_mustBePublic ;

    public TK2 ( )
    {
        i_canBePrivate = 0;
        i_mustBePublic = 0;
    }
}


public class TK1
{
    public static void main ( String[] args )
    {
        final TK2 tk2 = new TK2();
        tk2.i_mustBePublic = 1 ;
    }
}


_______________________________________________
Eap-list mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-list

Reply via email to