| 1 |
/******************************************************************************* |
| 2 |
* Copyright (c) 2013 IBM Corporation. |
| 3 |
* |
| 4 |
* This program and the accompanying materials |
| 5 |
* are made available under the terms of the Eclipse Public License 2.0 |
| 6 |
* which accompanies this distribution, and is available at |
| 7 |
* https://www.eclipse.org/legal/epl-2.0/ |
| 8 |
* |
| 9 |
* SPDX-License-Identifier: EPL-2.0 |
| 10 |
* |
| 11 |
* Contributors: |
| 12 |
* IBM Corporation - initial API and implementation |
| 13 |
*******************************************************************************/ |
| 14 |
package targets.model8; |
| 15 |
|
| 16 |
import org.eclipse.jdt.compiler.apt.tests.annotations.Type; |
| 17 |
|
| 18 |
public class Y { |
| 19 |
@Type("f") String @Type("f1") [] @Type("f2") [] _field2 @Type("f3") [], _field3 @Type("f4") [][] = null; |
| 20 |
|
| 21 |
@Deprecated @Type("m") String @Type("m1") [] foo() @Type("m2") [] @Type("m3") [] { |
| 22 |
return null; |
| 23 |
} |
| 24 |
void bar (@Type("p1") String [] a @Type("p2") [], @Type("p3") int @Type("p4") [] b [] @Type("p5") []) {} |
| 25 |
void foo2() throws @Type("e1") NullPointerException, @Type("e2") ArrayIndexOutOfBoundsException {} |
| 26 |
void bar2 (@Type("p1") String @Type("p2") [] @Type("p3") ... args) {} |
| 27 |
} |