You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
815 B
29 lines
815 B
10 years ago
|
/*
|
||
6 years ago
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
9 years ago
|
*
|
||
7 years ago
|
* This source code is licensed under the MIT license found in the
|
||
|
* LICENSE file in the root directory of this source tree.
|
||
9 years ago
|
*/
|
||
|
|
||
5 years ago
|
package codetoanalyze.java.nullsafe_gradual;
|
||
10 years ago
|
|
||
6 years ago
|
import android.annotation.SuppressLint;
|
||
10 years ago
|
import java.lang.annotation.ElementType;
|
||
|
import java.lang.annotation.Retention;
|
||
|
import java.lang.annotation.RetentionPolicy;
|
||
|
import java.lang.annotation.Target;
|
||
|
|
||
|
@Retention(RetentionPolicy.CLASS)
|
||
|
@Target({ElementType.TYPE, ElementType.FIELD, ElementType.METHOD})
|
||
6 years ago
|
@interface SuppressFieldNotInitialized {}
|
||
10 years ago
|
|
||
|
public class SuppressedFieldNotInitializedExample {
|
||
|
|
||
|
@SuppressLint("eradicate-field-not-initialized")
|
||
|
String iKnowBetter;
|
||
|
|
||
6 years ago
|
@SuppressFieldNotInitialized String annotationSuppressed;
|
||
10 years ago
|
|
||
6 years ago
|
SuppressedFieldNotInitializedExample() {}
|
||
10 years ago
|
}
|