mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
EA-65822 - assert: EncapsulateFieldsProcessor.checkExistingMethods
(cherry picked from commit ba6d1cbd27710de60a1d918ff478fe3094f94012)
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
class B {
|
||||
public int getI() {
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static class A {
|
||||
|
||||
private int i = 0;
|
||||
|
||||
/**
|
||||
* {@link B#getI()}
|
||||
*/
|
||||
void f() {}
|
||||
|
||||
public int getI() {
|
||||
return i;
|
||||
}
|
||||
|
||||
public void setI(int i) {
|
||||
this.i = i;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
class B {
|
||||
public int getI() {
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static class A {
|
||||
|
||||
private int i = 0;
|
||||
|
||||
/**
|
||||
* {@link B#getI()}
|
||||
*/
|
||||
void f() {}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user