blob: d6f2f79dd01c302436132b5b0c1d401b2e3396e8 [file] [log] [blame]
import org.checkerframework.checker.index.qual.*;
import org.checkerframework.common.value.qual.*;
public class Issue2420 {
static void str(String argStr) {
if (argStr.isEmpty()) {
return;
}
if (argStr == "abc") {
return;
}
// :: error: (argument)
char c = "abc".charAt(argStr.length() - 1);
// :: error: (argument)
char c2 = "abc".charAt(argStr.length());
}
}