mirror of
https://github.com/sigmasternchen/xtext-core
synced 2025-03-16 00:38:56 +00:00
Merge pull request #278 from eclipse/cd_eclipse_issue153
Introduce Nullable Annotation
This commit is contained in:
commit
7618b7cd1b
1 changed files with 24 additions and 0 deletions
|
@ -0,0 +1,24 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2017 itemis AG (http://www.itemis.eu) and others.
|
||||
* All rights reserved. This program and the accompanying materials
|
||||
* are made available under the terms of the Eclipse Public License v1.0
|
||||
* which accompanies this distribution, and is available at
|
||||
* http://www.eclipse.org/legal/epl-v10.html
|
||||
*******************************************************************************/
|
||||
package org.eclipse.xtext.util.internal;
|
||||
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
|
||||
/**
|
||||
* This annotation is <b>not</b> intended to be used to do <b>null analysis</b>.
|
||||
* The only purpose is to allow Google Guice to inject <code>@Inject(optional=true)</code> places with <code>null</code> instances.
|
||||
*
|
||||
* @author Christian Dietrich - Initial contribution and API
|
||||
*
|
||||
* @since 2.12
|
||||
*/
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
public @interface Nullable {
|
||||
|
||||
}
|
Loading…
Reference in a new issue