blob: f8eaea7529c7ddf6969d8bcdf14a0cfd80757919 [file] [log] [blame]
Damien Martin-Guillerezbf6281d2015-11-19 16:41:33 +00001// Copyright 2015 The Bazel Authors. All rights reserved.
Damien Martin-Guillerezc513e112015-03-10 12:32:21 +00002//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15/**
16 * A heavily annotated class used for testing.
17 */
18@Annotations.RuntimeInvisible
19@Annotations.RuntimeVisible
20final class AnnotatedClass {
21 @Annotations.RuntimeInvisible
22 @Annotations.RuntimeVisible
23 String field;
24
25 @Annotations.RuntimeInvisible
26 @Annotations.RuntimeVisible
27 private AnnotatedClass() {}
28
29 @Annotations.RuntimeInvisible
30 @Annotations.RuntimeVisible
31 public static void publicStaticMethod(
32 @Annotations.RuntimeInvisible @Annotations.RuntimeVisible String param) {
33 @Annotations.RuntimeInvisible
34 @Annotations.RuntimeVisible
35 String local = "Hello " + param + "!";
36 System.out.println(local);
37 }
38}