001/*
002 * Licensed under the Apache License, Version 2.0 (the "License");
003 * you may not use this file except in compliance with the License.
004 * You may obtain a copy of the License at
005 *
006 * http://www.apache.org/licenses/LICENSE-2.0
007 *
008 * Unless required by applicable law or agreed to in writing, software
009 * distributed under the License is distributed on an "AS IS" BASIS,
010 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
011 * See the License for the specific language governing permissions and
012 * limitations under the License.
013 */
014
015package com.google.j2objc.annotations;
016
017import java.lang.annotation.Documented;
018import java.lang.annotation.ElementType;
019import java.lang.annotation.Retention;
020import java.lang.annotation.RetentionPolicy;
021import java.lang.annotation.Target;
022
023/**
024 * Marks a declaration to be stripped by the J2ObjC translator prior to
025 * compilation. It is the developer's responsibility to ensure that any code
026 * depending on an element marked with {@literal @}J2ObjCIncompatible is also
027 * marked with {@literal @}J2ObjCIncompatible.
028 *
029 * @author Keith Stanger
030 */
031@Documented
032@Target({
033    ElementType.ANNOTATION_TYPE,
034    ElementType.CONSTRUCTOR,
035    ElementType.FIELD,
036    ElementType.METHOD,
037    ElementType.TYPE
038})
039@Retention(RetentionPolicy.SOURCE)
040public @interface J2ObjCIncompatible {}