mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 16:39:37 +07:00
IDEA-61130 Intention to replace an assignment with a setter call implemented
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
// "Encapsulate field" "false"
|
||||
|
||||
class A {
|
||||
public final boolean m_bool;
|
||||
}
|
||||
|
||||
public class B {
|
||||
void method() {
|
||||
A a = new A();
|
||||
|
||||
a.m_bo<caret>ol = true;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
// "Encapsulate field" "false"
|
||||
|
||||
class A {
|
||||
private boolean m_bool;
|
||||
}
|
||||
|
||||
public class B {
|
||||
void method() {
|
||||
A a = new A();
|
||||
|
||||
a.m_bo<caret>ol = true;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// "Encapsulate field" "false"
|
||||
|
||||
class A {
|
||||
public final boolean m_bool;
|
||||
|
||||
void method() {
|
||||
m_bo<caret>ol = true;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// "Encapsulate field" "false"
|
||||
|
||||
class A {
|
||||
public final boolean m_bool;
|
||||
|
||||
void method() {
|
||||
this.m_bo<caret>ol = true;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user