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

edu.umd.cs.findbugs.annotations.DesireNoWarning Maven / Gradle / Ivy

There is a newer version: 4.8.6
Show newest version
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package edu.umd.cs.findbugs.annotations;

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

/**
 * Annotation indicating that no FindBugs warnings of the specified type
 * is desired.
 *
 * See http://code.google.com/p/findbugs/wiki/FindbugsTestCases
 *
 * @author David Hovemeyer
 * @deprecated The annotation based approach is useless for lambdas. Write expectations using {@code edu.umd.cs.findbugs.test.matcher.BugInstanceMatcher} matchers in test source directory
 */
@Deprecated
@Retention(RetentionPolicy.CLASS)
public @interface DesireNoWarning {
    /**
     * The value indicates the bug code (e.g., NP) or bug pattern (e.g.,
     * IL_INFINITE_LOOP) that is desired to not be reported
     */
    public String value();

    /** @deprecated - use confidence instead */
    @Deprecated
    Priority priority() default Priority.LOW;

    /** Want no warning at this priority or higher */
    Confidence confidence() default Confidence.LOW;

    /** Tolerate up to this many warnings */
    public int num() default 0;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy