diff options
Diffstat (limited to 'apitools/org.eclipse.pde.api.tools.tests/test-builder/tags/annotation/test14.java')
-rw-r--r-- | apitools/org.eclipse.pde.api.tools.tests/test-builder/tags/annotation/test14.java | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/apitools/org.eclipse.pde.api.tools.tests/test-builder/tags/annotation/test14.java b/apitools/org.eclipse.pde.api.tools.tests/test-builder/tags/annotation/test14.java new file mode 100644 index 0000000000..a8025f736e --- /dev/null +++ b/apitools/org.eclipse.pde.api.tools.tests/test-builder/tags/annotation/test14.java @@ -0,0 +1,55 @@ +package x.y.z; +/******************************************************************************* + * Copyright (c) 2013 IBM Corporation 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 + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ + +/** + * Tests all tags are invalid when parent annotation is private or package default + */ +public @interface test14 { + + public @interface inner1 { + + /** + * @noextend + * @noinstantiate + * @noreference + */ + public static class Clazz { + } + + /** + * @noextend + * @noimplement + * @noreference + */ + public interface inter { + } + + /** + * @noreference + */ + public int field = 0; + + /** + * @noreference + */ + public @interface annot { + + } + + /** + * @noreference + */ + enum enu { + } + } + +} |