Debian Codegraph @

org.eclipse.jdt.compiler.apt.tests/resources/targets/dispatch/WarnGenClass.java

raw
1 /*******************************************************************************
2 * Copyright (c) 2020 Thomas Wolf <[email protected]> and others.
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 /*
12 * Target for annotation processing test. Processing this
13 * should result in generation of a class gen.WarnGen with
14 * method public String foo().
15 * @see org.eclipse.jdt.compiler.apt.tests.processors.genclass.GenClassProc.
16 */
17 package targets.dispatch;
18
19 import org.eclipse.jdt.compiler.apt.tests.annotations.GenClass;
20
21 // This class will be generated by the annotation processor
22 import gen.WarnGen;
23
24 @GenClass(clazz="gen.WarnGen", method="foo", warn=true)
25 public class WarnGenClass {
26 String get() {
27 return (new WarnGen()).foo();
28 }
29 }