I have this code:

    if (l2Row != null) {
        l2Row.updateAllData(pData);
    }
    else if (!liveQuote) {
        l2Model.insertRow(new Level2TableRow(pData, l2Model), 0);
    }

liveQuote does not yet exist so IDEA marks it red and an intention action
offers to create a field or local variable.  I chose local variable and IDEA
came back with this:

    if (l2Row != null) {
        l2Row.updateAllData(pData);
    }
    else
        boolean liveQuote; if (!liveQuote) {
        l2Model.insertRow(new Level2TableRow(pData, l2Model), 0);
    }


Obviously this breaks the syntax, making the variable declaration the "else
clause" and the if statement a new line...

-sms


_______________________________________________
Eap-bugs mailing list
[EMAIL PROTECTED]
http://lists.jetbrains.com/mailman/listinfo/eap-bugs

Reply via email to