mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
test++
This commit is contained in:
+21
@@ -0,0 +1,21 @@
|
||||
class Mapping {
|
||||
private int myInt;
|
||||
|
||||
public void <caret>method(int p1, boolean p2) {
|
||||
myInt = p2 ? p1 : 0;
|
||||
if (!p2) {
|
||||
myInt *= p1;
|
||||
}
|
||||
}
|
||||
|
||||
public boolean sayYes() {
|
||||
return true;
|
||||
}
|
||||
|
||||
public void context() {
|
||||
myInt = sayYes() ? 15 / 5 : 0;
|
||||
if (!sayYes()) {
|
||||
myInt *= 15 / 5;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user