All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.checkerframework.checker.index.substringindex.SubstringIndexChecker Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 3.43.0
Show newest version
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() {}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy