Hi all,

With the following code:

String strLine = lineRdr.readLine();
int nIndex = strLine.indexOf( "public void test" );
if ( strLine != null && nIndex != -1 ) {
    strLastMethod = strLine.substring( nIndex + 12, strLine.indexOf( "(" ) );
}


The strLine != null part of the if statement is marked as "always being true"
in the Constant Conditions tab of inspection.

-- Rick

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

Reply via email to