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

org.checkerframework.framework.qual.DefaultQualifierInHierarchyInUncheckedCode 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.0.0-b2
Show newest version
package org.checkerframework.framework.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;

/**
 * Indicates that the annotated qualifier is the default qualifier on unannotated type uses (in
 * bytecode or source code that has not been type-checked).
 *
 * 

This qualifier only applies if the {@code -AuseDefaultsForUncheckedCode} command-line option * enables unchecked code defaults. They can be enabled for source and bytecode separately. If the * unchecked code defaults are enabled for source code, they will only be applied to source code not * annotated with {@link AnnotatedFor} for the checker being executed. * *

Each type qualifier hierarchy may have at most one qualifier marked as {@code * DefaultQualifierInHierarchyInUncheckedCode}. * *

Note, this annotation is analogous to {@code @}{@link DefaultQualifierInHierarchy} but for * unannotated type uses in code that has not been type-checked. * *

If a checker does not specify a default qualifier for unchecked code, then the defaults for * checked code will be used. * *

This qualifier is for type system developers, not end-users. * * @see AnnotatedFor * @see DefaultInUncheckedCodeFor * @checker_framework.manual #defaults-classfile Default qualifiers for .class files (conservative * library defaults) * @checker_framework.manual #compiling-libraries Compiling partially-annotated libraries */ @Documented @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.ANNOTATION_TYPE) public @interface DefaultQualifierInHierarchyInUncheckedCode {}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy