
org.checkerframework.dataflow.qual.TerminatesExecution Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of checker-qual7 Show documentation
Show all versions of checker-qual7 Show documentation
Checker Qual is the set of annotations (qualifiers) and supporting classes
used by the Checker Framework to type check Java source code. Please
see artifact:
org.checkerframework:checker
The newest version!
package org.checkerframework.dataflow.qual;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* {@code TerminatesExecution} is a method annotation that indicates that a method terminates the
* execution of the program. This can be used to annotate methods such as {@code System.exit()}.
*
* The annotation enables flow-sensitive type refinement to be more precise. For example, after
*
*
* if (x == null) {
* System.err.println("Bad value supplied");
* System.exit(1);
* }
*
*
* the Nullness Checker can determine that {@code x} is non-null.
*
* The annotation is a trusted annotation, meaning that it is not checked whether the
* annotated method really does terminate the program.
*
* @checker_framework.manual #type-refinement Automatic type refinement (flow-sensitive type
* qualifier inference)
*/
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.CONSTRUCTOR})
public @interface TerminatesExecution {}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy