mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[java-highlighting] IDEA-325916 Get rid of deconstruction patterns with pattern variables.
Clean tests GitOrigin-RevId: cb3ca829cabc9ab6e96f3ccb77d213896606c93e
This commit is contained in:
committed by
intellij-monorepo-bot
parent
dbb4b11cbe
commit
f61c8612f9
+1
-1
@@ -2,7 +2,7 @@ record R(int x, int y){}
|
||||
class Test{
|
||||
void foo(Object o) {
|
||||
switch(o){
|
||||
case R(int w, int c) s -> System.out.println(w<caret>);
|
||||
case R(int w, int c) -> System.out.println(w<caret>);
|
||||
default -> System.out.println()
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ record R(int x, int y){}
|
||||
class Test{
|
||||
void foo(Object o) {
|
||||
switch(o){
|
||||
case R(int <caret>w, int c) s -> System.out.println(w);
|
||||
case R(int <caret>w, int c) -> System.out.println(w);
|
||||
default -> System.out.println()
|
||||
}
|
||||
}
|
||||
|
||||
-9
@@ -1,9 +0,0 @@
|
||||
record R(int x, int y){}
|
||||
class Test{
|
||||
void foo(Object o) {
|
||||
switch(o){
|
||||
case R(int w, int c) s -> System.out.println(s<caret>);
|
||||
default -> System.out.println()
|
||||
}
|
||||
}
|
||||
}
|
||||
-9
@@ -1,9 +0,0 @@
|
||||
record R(int x, int y){}
|
||||
class Test{
|
||||
void foo(Object o) {
|
||||
switch(o){
|
||||
case R(int w, int c) <caret>s -> System.out.println(s);
|
||||
default -> System.out.println()
|
||||
}
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -2,7 +2,7 @@ record R(int x, int y){}
|
||||
class Test{
|
||||
void foo(Object o) {
|
||||
switch(o){
|
||||
case R(int w, int c) s when c<caret> > 0 -> System.out.println();
|
||||
case R(int w, int c) when c<caret> > 0 -> System.out.println();
|
||||
default -> System.out.println()
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ record R(int x, int y){}
|
||||
class Test{
|
||||
void foo(Object o) {
|
||||
switch(o){
|
||||
case R(int w, int <caret>c) s when c > 0 -> System.out.println();
|
||||
case R(int w, int <caret>c) when c > 0 -> System.out.println();
|
||||
default -> System.out.println()
|
||||
}
|
||||
}
|
||||
|
||||
-9
@@ -1,9 +0,0 @@
|
||||
record R(int x, int y){}
|
||||
class Test{
|
||||
void foo(Object o) {
|
||||
switch(o){
|
||||
case R(int w, int c) s when s<caret>.y() > 0 -> System.out.println();
|
||||
default -> System.out.println()
|
||||
}
|
||||
}
|
||||
}
|
||||
-9
@@ -1,9 +0,0 @@
|
||||
record R(int x, int y){}
|
||||
class Test{
|
||||
void foo(Object o) {
|
||||
switch(o){
|
||||
case R(int w, int c) <caret>s when s.y() > 0 -> System.out.println();
|
||||
default -> System.out.println()
|
||||
}
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -2,7 +2,7 @@ record R(int x, int y){}
|
||||
class Test{
|
||||
void foo(Object o) {
|
||||
switch(o){
|
||||
case R(int w, int c) s:
|
||||
case R(int w, int c):
|
||||
System.out.println(c<caret>);
|
||||
break;
|
||||
default -> System.out.println()
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ record R(int x, int y){}
|
||||
class Test{
|
||||
void foo(Object o) {
|
||||
switch(o){
|
||||
case R(int w, int <caret>c) s:
|
||||
case R(int w, int <caret>c):
|
||||
System.out.println(c);
|
||||
break;
|
||||
default -> System.out.println()
|
||||
|
||||
-11
@@ -1,11 +0,0 @@
|
||||
record R(int x, int y){}
|
||||
class Test{
|
||||
void foo(Object o) {
|
||||
switch(o){
|
||||
case R(int w, int c) s:
|
||||
System.out.println(s<caret>);
|
||||
break;
|
||||
default -> System.out.println()
|
||||
}
|
||||
}
|
||||
}
|
||||
-11
@@ -1,11 +0,0 @@
|
||||
record R(int x, int y){}
|
||||
class Test{
|
||||
void foo(Object o) {
|
||||
switch(o){
|
||||
case R(int w, int c) <caret>s:
|
||||
System.out.println(s);
|
||||
break;
|
||||
default -> System.out.println()
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user