Assignment operations test fix:
these methods used in expressions like a = a + b, so they need to return NotNull when receiver is NotNull
This commit is contained in:
committed by
Evgeny Gerashchenko
parent
48ca1bd453
commit
c4746bc90f
+7
-5
@@ -1,25 +1,27 @@
|
|||||||
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
|
||||||
class JavaClass {
|
class JavaClass {
|
||||||
JavaClass plus(Runnable i) {
|
@NotNull JavaClass plus(Runnable i) {
|
||||||
i.run();
|
i.run();
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
JavaClass minus(Runnable i) {
|
@NotNull JavaClass minus(Runnable i) {
|
||||||
i.run();
|
i.run();
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
JavaClass times(Runnable i) {
|
@NotNull JavaClass times(Runnable i) {
|
||||||
i.run();
|
i.run();
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
JavaClass div(Runnable i) {
|
@NotNull JavaClass div(Runnable i) {
|
||||||
i.run();
|
i.run();
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
JavaClass mod(Runnable i) {
|
@NotNull JavaClass mod(Runnable i) {
|
||||||
i.run();
|
i.run();
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user