1282e181b58cf72b6ca770dc7ca5f91f135444502Adam Lesinski/*
2282e181b58cf72b6ca770dc7ca5f91f135444502Adam Lesinski * Copyright (C) 2010 The Android Open Source Project
3282e181b58cf72b6ca770dc7ca5f91f135444502Adam Lesinski *
4282e181b58cf72b6ca770dc7ca5f91f135444502Adam Lesinski * Licensed under the Apache License, Version 2.0 (the "License");
5282e181b58cf72b6ca770dc7ca5f91f135444502Adam Lesinski * you may not use this file except in compliance with the License.
6282e181b58cf72b6ca770dc7ca5f91f135444502Adam Lesinski * You may obtain a copy of the License at
7282e181b58cf72b6ca770dc7ca5f91f135444502Adam Lesinski *
8282e181b58cf72b6ca770dc7ca5f91f135444502Adam Lesinski *      http://www.apache.org/licenses/LICENSE-2.0
9282e181b58cf72b6ca770dc7ca5f91f135444502Adam Lesinski *
10282e181b58cf72b6ca770dc7ca5f91f135444502Adam Lesinski * Unless required by applicable law or agreed to in writing, software
11282e181b58cf72b6ca770dc7ca5f91f135444502Adam Lesinski * distributed under the License is distributed on an "AS IS" BASIS,
12282e181b58cf72b6ca770dc7ca5f91f135444502Adam Lesinski * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13282e181b58cf72b6ca770dc7ca5f91f135444502Adam Lesinski * See the License for the specific language governing permissions and
14282e181b58cf72b6ca770dc7ca5f91f135444502Adam Lesinski * limitations under the License.
15282e181b58cf72b6ca770dc7ca5f91f135444502Adam Lesinski */
16282e181b58cf72b6ca770dc7ca5f91f135444502Adam Lesinski
17282e181b58cf72b6ca770dc7ca5f91f135444502Adam Lesinskipackage com.android.tools.layoutlib.annotations;
18282e181b58cf72b6ca770dc7ca5f91f135444502Adam Lesinski
19282e181b58cf72b6ca770dc7ca5f91f135444502Adam Lesinskiimport java.lang.annotation.Retention;
20282e181b58cf72b6ca770dc7ca5f91f135444502Adam Lesinskiimport java.lang.annotation.RetentionPolicy;
21282e181b58cf72b6ca770dc7ca5f91f135444502Adam Lesinski
22282e181b58cf72b6ca770dc7ca5f91f135444502Adam Lesinski/**
23282e181b58cf72b6ca770dc7ca5f91f135444502Adam Lesinski * Denotes a parameter or field can be null.
24282e181b58cf72b6ca770dc7ca5f91f135444502Adam Lesinski * <p/>
25282e181b58cf72b6ca770dc7ca5f91f135444502Adam Lesinski * When decorating a method call parameter, this denotes the parameter can
26282e181b58cf72b6ca770dc7ca5f91f135444502Adam Lesinski * legitimately be null and the method will gracefully deal with it. Typically used
27282e181b58cf72b6ca770dc7ca5f91f135444502Adam Lesinski * on optional parameters.
28282e181b58cf72b6ca770dc7ca5f91f135444502Adam Lesinski * <p/>
29282e181b58cf72b6ca770dc7ca5f91f135444502Adam Lesinski * When decorating a method, this denotes the method might legitimately return null.
30282e181b58cf72b6ca770dc7ca5f91f135444502Adam Lesinski * <p/>
31282e181b58cf72b6ca770dc7ca5f91f135444502Adam Lesinski * This is a marker annotation and it has no specific attributes.
32282e181b58cf72b6ca770dc7ca5f91f135444502Adam Lesinski */
33282e181b58cf72b6ca770dc7ca5f91f135444502Adam Lesinski@Retention(RetentionPolicy.SOURCE)
34282e181b58cf72b6ca770dc7ca5f91f135444502Adam Lesinskipublic @interface Nullable {
35282e181b58cf72b6ca770dc7ca5f91f135444502Adam Lesinski}
36