mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
do not need parenthesis for associative operations (IDEADEV-41569); move to java-tests
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
class A {
|
||||
int getContentElementType() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
void method() {
|
||||
switch (<selection>getContentElementType()</selection>) {
|
||||
default: throw new IllegalArgumentException("Wrong content type: " + getContentElementType());
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user