Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advHighlighting/NotWellFormedExpressionStatementWithoutSemicolon.java
Tagir Valeev b5f948dd5f [java-highlighting] IDEA-265053 Highlight not-wellformed statements without semicolon as a "not-a-statement"
Also suggest 'introduce local variable' as a quick-fix

GitOrigin-RevId: 2a15a1d35ed1755ab043a40a06136ed946c4a516
2021-03-24 23:54:49 +00:00

9 lines
311 B
Java

class C {
void foo(int i, int j) {
<error descr="Not a statement">123</error>
<error descr="Not a statement">i+j</error> /*oops*/
foo(1, 2)<EOLError descr="';' expected"></EOLError>
i++<EOLError descr="';' expected"></EOLError>
toString()<error descr="';' expected"> </error>/*oops*/
}
}