mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 06:11:42 +07:00
disable assign param to field (IDEA-173747; IDEA-173689)
inapplicable types or already assigned
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
// "Assign Parameter to Field 'myA'" "false"
|
||||
|
||||
class Person {
|
||||
int myA;
|
||||
int myId;
|
||||
void f(int <caret>a, String id) {
|
||||
this.myA = foo(a);
|
||||
}
|
||||
int foo(int a) {return a;}
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
// "Assign Parameter to Field 'myId'" "false"
|
||||
|
||||
class Person {
|
||||
int a;
|
||||
int myId;
|
||||
void f(int a, String id<caret>) {
|
||||
this.a = foo(a);
|
||||
}
|
||||
int foo(int a) {return a;}
|
||||
}
|
||||
Reference in New Issue
Block a user