org.checkerframework.checker.mustcall.qual.NotOwning 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.mustcall.qual;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Annotation indicating that ownership should not be transferred to the annotated parameter, field,
* or method's call sites, for the purposes of Must Call checking. For a full description of the
* semantics, see the documentation of {@link Owning}.
*
* Parameters and fields are treated as if they have this annotation by default unless they have
* {@link Owning}.
*
*
When the -AnoLightweightOwnership command-line argument is passed to the checker, this
* annotation and {@link Owning} are ignored.
*
* @checker_framework.manual #resource-leak-checker Resource Leak Checker
*/
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.PARAMETER, ElementType.FIELD})
public @interface NotOwning {}