mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
inline parameter: check visibility access (IDEA-52169)
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
public class VisibilityPinline {
|
||||
private static DifferentScope cashedObject = new DifferentScope();
|
||||
|
||||
private static DifferentScope provideObject() {
|
||||
return new DifferentScope();
|
||||
}
|
||||
|
||||
public void context() {
|
||||
DifferentScope vB = new DifferentScope();
|
||||
vB.inlineB(provideObject());
|
||||
}
|
||||
}
|
||||
|
||||
class DifferentScope {
|
||||
private int value = 1;
|
||||
|
||||
public void mutate() {
|
||||
value++;
|
||||
}
|
||||
|
||||
public void inlineB(DifferentScope <caret>subj) {
|
||||
subj.mutate();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user