aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs1920/github_246/App.java
blob: 8e0bbe8bf852012939388ff145338fdc2ef56ad5 (plain)
1
2
3
4
5
6
7
8
9
10
11
import java.lang.reflect.Method;
import java.util.Arrays;

public class App {
  public static void main(String[] args) {
    for (Method method : App.class.getDeclaredMethods()) {
      if (method.getName().equals("foo"))
        System.out.println(Arrays.toString(method.getDeclaredAnnotations()) + " " + method);
    }
  }
}