i get the Message 'Variable newtext intializer null at line 1487 is
redundant' : and the code looks like this:

// example 

        StringBuffer newtext = null;

        if ( condition )  {
                newtext = new StringBuffer("text");
        } else if ( condition1) {
                newtext = new StringBuffer("text1");    
        } else newtext = StringBuffer("");

        // and later i.e
        System.out.println(newtext);

any ideas ? do i something wrong ? i don't want to initialize the
StringBuffer twice ( first with the default value ("") ( or other :) ), and
then (if condition or condition1 == true) the second time...


Thanks for feature 'Type cast is redudant', but i miss the option of
automatically removing of the redudant casting statements, if i remove them
manually, idea throws exceptions ( Internal Error occured-dialog ), the code
inspection status becomes 'INVALID' and it has to be restarted :((

It seems like the app becomes slooooooow after the code inspection...

best regards
Tomasz


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

Reply via email to