1bad51d783a94c137c3775bbbb95e2eefa87bd0b3Jesse Wilson/* 2bad51d783a94c137c3775bbbb95e2eefa87bd0b3Jesse Wilson * Copyright (C) 2011 The Android Open Source Project 3bad51d783a94c137c3775bbbb95e2eefa87bd0b3Jesse Wilson * 4bad51d783a94c137c3775bbbb95e2eefa87bd0b3Jesse Wilson * Licensed under the Apache License, Version 2.0 (the "License"); 5bad51d783a94c137c3775bbbb95e2eefa87bd0b3Jesse Wilson * you may not use this file except in compliance with the License. 6bad51d783a94c137c3775bbbb95e2eefa87bd0b3Jesse Wilson * You may obtain a copy of the License at 7bad51d783a94c137c3775bbbb95e2eefa87bd0b3Jesse Wilson * 8bad51d783a94c137c3775bbbb95e2eefa87bd0b3Jesse Wilson * http://www.apache.org/licenses/LICENSE-2.0 9bad51d783a94c137c3775bbbb95e2eefa87bd0b3Jesse Wilson * 10bad51d783a94c137c3775bbbb95e2eefa87bd0b3Jesse Wilson * Unless required by applicable law or agreed to in writing, software 11bad51d783a94c137c3775bbbb95e2eefa87bd0b3Jesse Wilson * distributed under the License is distributed on an "AS IS" BASIS, 12bad51d783a94c137c3775bbbb95e2eefa87bd0b3Jesse Wilson * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13bad51d783a94c137c3775bbbb95e2eefa87bd0b3Jesse Wilson * See the License for the specific language governing permissions and 14bad51d783a94c137c3775bbbb95e2eefa87bd0b3Jesse Wilson * limitations under the License. 15bad51d783a94c137c3775bbbb95e2eefa87bd0b3Jesse Wilson */ 16bad51d783a94c137c3775bbbb95e2eefa87bd0b3Jesse Wilson 17bad51d783a94c137c3775bbbb95e2eefa87bd0b3Jesse Wilsonpackage java.lang; 18bad51d783a94c137c3775bbbb95e2eefa87bd0b3Jesse Wilson 19bad51d783a94c137c3775bbbb95e2eefa87bd0b3Jesse Wilsonimport static java.lang.annotation.ElementType.CONSTRUCTOR; 20bad51d783a94c137c3775bbbb95e2eefa87bd0b3Jesse Wilsonimport static java.lang.annotation.ElementType.FIELD; 21bad51d783a94c137c3775bbbb95e2eefa87bd0b3Jesse Wilsonimport static java.lang.annotation.ElementType.LOCAL_VARIABLE; 22bad51d783a94c137c3775bbbb95e2eefa87bd0b3Jesse Wilsonimport static java.lang.annotation.ElementType.METHOD; 23bad51d783a94c137c3775bbbb95e2eefa87bd0b3Jesse Wilsonimport static java.lang.annotation.ElementType.PARAMETER; 24bad51d783a94c137c3775bbbb95e2eefa87bd0b3Jesse Wilsonimport static java.lang.annotation.ElementType.TYPE; 25bad51d783a94c137c3775bbbb95e2eefa87bd0b3Jesse Wilsonimport java.lang.annotation.Retention; 26bad51d783a94c137c3775bbbb95e2eefa87bd0b3Jesse Wilsonimport static java.lang.annotation.RetentionPolicy.CLASS; 27bad51d783a94c137c3775bbbb95e2eefa87bd0b3Jesse Wilsonimport java.lang.annotation.Target; 28bad51d783a94c137c3775bbbb95e2eefa87bd0b3Jesse Wilson 29bad51d783a94c137c3775bbbb95e2eefa87bd0b3Jesse Wilson/** 30bad51d783a94c137c3775bbbb95e2eefa87bd0b3Jesse Wilson * Suppress FindBugs warnings on the annotated element. FindBugs will recognize 31bad51d783a94c137c3775bbbb95e2eefa87bd0b3Jesse Wilson * any annotation that has class retention and whose name ends with 32bad51d783a94c137c3775bbbb95e2eefa87bd0b3Jesse Wilson * "SuppressWarnings". 33bad51d783a94c137c3775bbbb95e2eefa87bd0b3Jesse Wilson * 34bad51d783a94c137c3775bbbb95e2eefa87bd0b3Jesse Wilson * @hide 35bad51d783a94c137c3775bbbb95e2eefa87bd0b3Jesse Wilson */ 36bad51d783a94c137c3775bbbb95e2eefa87bd0b3Jesse Wilson@Target({TYPE, FIELD, METHOD, PARAMETER, CONSTRUCTOR, LOCAL_VARIABLE}) 37bad51d783a94c137c3775bbbb95e2eefa87bd0b3Jesse Wilson@Retention(CLASS) 38bad51d783a94c137c3775bbbb95e2eefa87bd0b3Jesse Wilsonpublic @interface FindBugsSuppressWarnings { 39bad51d783a94c137c3775bbbb95e2eefa87bd0b3Jesse Wilson 40bad51d783a94c137c3775bbbb95e2eefa87bd0b3Jesse Wilson /** 41bad51d783a94c137c3775bbbb95e2eefa87bd0b3Jesse Wilson * The <a href="http://findbugs.sourceforge.net/bugDescriptions.html">FindBugs 42bad51d783a94c137c3775bbbb95e2eefa87bd0b3Jesse Wilson * Patterns</a> to suppress, such as {@code SE_TRANSIENT_FIELD_NOT_RESTORED} 43bad51d783a94c137c3775bbbb95e2eefa87bd0b3Jesse Wilson * or {@code Se}. Full, upper case names are preferred. 44bad51d783a94c137c3775bbbb95e2eefa87bd0b3Jesse Wilson */ 45bad51d783a94c137c3775bbbb95e2eefa87bd0b3Jesse Wilson String[] value(); 46bad51d783a94c137c3775bbbb95e2eefa87bd0b3Jesse Wilson} 47