]>
iEval git - fonbot.git/blob - src/org/eclipse/jdt/annotation/Nullable.java
1 /*******************************************************************************
2 * Copyright (c) 2011, 2012 Stephan Herrmann and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
9 * Stephan Herrmann - initial API and implementation
10 * IBM Corporation - bug fixes
11 *******************************************************************************/
12 package org
.eclipse
.jdt
.annotation
;
14 import static java
.lang
.annotation
.ElementType
.LOCAL_VARIABLE
;
15 import static java
.lang
.annotation
.ElementType
.METHOD
;
16 import static java
.lang
.annotation
.ElementType
.PARAMETER
;
18 import java
.lang
.annotation
.Documented
;
19 import java
.lang
.annotation
.Retention
;
20 import java
.lang
.annotation
.RetentionPolicy
;
21 import java
.lang
.annotation
.Target
;
24 * Qualifier for a type in a method signature or a local variable declaration:
25 * The entity (return value, parameter, local variable) whose type has this
26 * annotation is allowed to have the value <code>null</code> at runtime.
28 * This has two consequences:
30 * <li>Binding a <code>null</code> value to the entity is legal.</li>
31 * <li>Dereferencing the entity is unsafe, i.e., a <code>NullPointerException</code> can occur at runtime.</li>
37 @Retention(RetentionPolicy
.CLASS
)
38 @Target({ METHOD
, PARAMETER
, LOCAL_VARIABLE
})
39 public @interface Nullable
{
40 // marker annotation with no members
This page took 0.043924 seconds and 4 git commands to generate.