001    /**
002     * $Id: MayBeNull.java,v 1.1 2010/01/05 13:26:18 oboehm Exp $
003     *
004     * Copyright (c) 2009 by Oliver Boehm
005     *
006     * Licensed under the Apache License, Version 2.0 (the "License");
007     * you may not use this file except in compliance with the License.
008     * You may obtain a copy of the License at
009     *
010     *   http://www.apache.org/licenses/LICENSE-2.0
011     *
012     * Unless required by applicable law or agreed to in writing, software
013     * distributed under the License is distributed on an "AS IS" BASIS,
014     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express orimplied.
015     * See the License for the specific language governing permissions and
016     * limitations under the License.
017     *
018     * (c)reated 15.06.2009 by oliver (ob@aosd.de)
019     */
020    package patterntesting.annotation.check.runtime;
021    
022    import java.lang.annotation.*;
023    
024    /**
025     * If one of an argument of a method can be null you can use this annotation
026     * to mark it.
027     * <br/>
028     * You can also mark fields with this annotation but this is at the moment not
029     * evaluated. But you can use it for documentation purposes.
030     *
031     * @author <a href="boehm@javatux.de">oliver</a>
032     * @since 15.06.2009
033     * @version $Revision: 1.1 $
034     */
035    @Documented
036    @Retention(RetentionPolicy.RUNTIME)
037    @Target({ElementType.PARAMETER, ElementType.FIELD})
038    public @interface MayBeNull {
039    
040    }
041    
042    /**
043     * $Log: MayBeNull.java,v $
044     * Revision 1.1  2010/01/05 13:26:18  oboehm
045     * begin with 1.0
046     *
047     * Revision 1.2  2009/12/19 22:34:09  oboehm
048     * trailing spaces removed
049     *
050     * Revision 1.1  2009/06/15 09:08:36  oboehm
051     * @MayBeNull added
052     *
053     * $Source: /cvsroot/patterntesting/PatternTesting10/patterntesting-rt/src/main/java/patterntesting/annotation/check/runtime/MayBeNull.java,v $
054     */