mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-20 02:15:59 +07:00
11 lines
245 B
Java
11 lines
245 B
Java
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;
|
|
}
|
|
} |