mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-05 16:36:56 +07:00
Also, restore common known type information on state merge GitOrigin-RevId: f40b56b17c4f1f255c4533b5c8c65bfe3d0c9ebb
13 lines
498 B
Java
13 lines
498 B
Java
import org.jetbrains.annotations.*;
|
|
|
|
class Test {
|
|
public static boolean test(@Nullable String name, @NotNull String prefix) {
|
|
return name != null && name.startsWith(prefix) && name.length() > prefix.length();
|
|
}
|
|
|
|
void test1(String s1, String s2) {
|
|
if (<warning descr="Condition 's1.contains(s1)' is always 'true'">s1.contains(s1)</warning>) {}
|
|
|
|
if (s1.contains(s2) || <warning descr="Condition 's1.equals(s2)' is always 'false' when reached">s1.equals(s2)</warning>) {}
|
|
}
|
|
} |