mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-17 20:11:25 +07:00
[java-intentions] BindFieldsFromParameters: disable for existing field if static or type doesn't match
GitOrigin-RevId: ad1d93533626f5e76a3f53c5ab25b06a5aa07f1e
This commit is contained in:
committed by
intellij-monorepo-bot
parent
0f2865b919
commit
9092a09789
@@ -0,0 +1,12 @@
|
||||
// "Bind method parameters to fields" "true-preview"
|
||||
|
||||
class Bar {
|
||||
private static int f4;
|
||||
private int f1;
|
||||
private static boolean f2;
|
||||
private static final int f3 = 123;
|
||||
|
||||
static void test(int f1, int f2, int f3, int f4) {
|
||||
Bar.f4 = f4;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
// "Bind method parameters to fields" "true-preview"
|
||||
|
||||
class Bar {
|
||||
private int f1;
|
||||
private static boolean f2;
|
||||
private static final int f3 = 123;
|
||||
|
||||
static void <caret>test(int f1, int f2, int f3, int f4) {
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user