blob: 1981eb15c1570090d4a532f270ce5df9bb39cc68 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2008, 2010 VMware Inc.
* 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
*
* Contributors:
* VMware Inc. - initial contribution
*******************************************************************************/
package org.eclipse.virgo.nano.serviceability;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* NonNull is an annotation to automate the insert of a non-null assertion check on a method parameter. The method
* taking the annotated parameter(s) is advised by an aspect to inject the assertion check.
* <p />
*
* <strong>Concurrent Semantics</strong><br />
*
* This annotation is thread safe.
*
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.PARAMETER)
@Documented()
public @interface NonNull {
}