org.checkerframework.checker.index.substringindex.SubstringIndexChecker Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of checker Show documentation
Show all versions of checker Show documentation
The Checker Framework enhances Java's type system to
make it more powerful and useful. This lets software developers
detect and prevent errors in their Java programs.
The Checker Framework includes compiler plug-ins ("checkers")
that find bugs or verify their absence. It also permits you to
write your own compiler plug-ins.
package org.checkerframework.checker.index.substringindex;
import org.checkerframework.common.basetype.BaseTypeChecker;
import org.checkerframework.framework.qual.RelevantJavaTypes;
import org.checkerframework.framework.source.SuppressWarningsPrefix;
/**
* The Substring Index Checker is an internal checker that assists the Index Checker in typing the
* results of calls to the JDK's {@link java.lang.String#indexOf(String) String.indexOf} and {@link
* java.lang.String#lastIndexOf(String) String.lastIndexOf} routines.
*
* @checker_framework.manual #index-substringindex Index Checker
*/
@SuppressWarningsPrefix({"index", "substringindex"})
// int.class is for @SubstringIndexFor
@RelevantJavaTypes({CharSequence.class, Object[].class, int.class})
public class SubstringIndexChecker extends BaseTypeChecker {
/** Creates a SubstringIndexChecker. */
public SubstringIndexChecker() {}
}