mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
IDEA-136580 "Contract violation" warnings are reported for manual method contract
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import org.jetbrains.annotations.Contract;
|
||||
|
||||
class Zoo {
|
||||
@Contract("null, _ -> null; !null, _ -> !null")
|
||||
public static Double testContract_1(Double value1, int value2) {
|
||||
if (value1 == null) {
|
||||
return null;
|
||||
}
|
||||
return 0.0;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user