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

org.apache.pulsar.shade.javax.annotation.ParametersAreNullableByDefault Maven / Gradle / Ivy

There is a newer version: 4.0.0-preview.1
Show newest version
package org.apache.pulsar.shade.javax.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

import org.apache.pulsar.shade.javax.annotation.meta.TypeQualifierDefault;

/**
 * This annotation can be applied to a package, class or method to indicate that
 * the method parameters in that element are nullable by default unless there is:
 * 
    *
  • An explicit nullness annotation *
  • The method overrides a method in a superclass (in which case the * annotation of the corresponding parameter in the superclass applies) *
  • There is a default parameter annotation applied to a more tightly nested element. *
*

This annotation implies the same "nullness" as no annotation. However, it is different * than having no annotation, as it is inherited and it can override a {@link ParametersAreNonnullByDefault} * annotation at an outer scope. * * @see Nullable */ @Documented @Nullable @TypeQualifierDefault(ElementType.PARAMETER) @Retention(RetentionPolicy.RUNTIME) public @interface ParametersAreNullableByDefault { }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy