test/tools/javac/annotations/repeatingAnnotations/RepMemberAnno.java

changeset 1492
df694c775e8a
parent 1313
873ddd9f4900
child 2525
2eb010b6cb22
     1.1 --- a/test/tools/javac/annotations/repeatingAnnotations/RepMemberAnno.java	Mon Jan 14 19:52:36 2013 +0100
     1.2 +++ b/test/tools/javac/annotations/repeatingAnnotations/RepMemberAnno.java	Mon Jan 14 13:50:01 2013 -0800
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
     1.7   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.8   *
     1.9   * This code is free software; you can redistribute it and/or modify it
    1.10 @@ -30,20 +30,18 @@
    1.11   * @run compile RepMemberAnno.java
    1.12   */
    1.13  
    1.14 -import java.lang.annotation.ContainedBy;
    1.15 -import java.lang.annotation.ContainerFor;
    1.16 +import java.lang.annotation.Repeatable;
    1.17  
    1.18  public class RepMemberAnno {
    1.19      @Bar("Apa") @Bar("Banan")
    1.20      public void meh() {}
    1.21  }
    1.22  
    1.23 -@ContainedBy(BarContainer.class)
    1.24 +@Repeatable(BarContainer.class)
    1.25  @interface Bar {
    1.26      String value();
    1.27  }
    1.28  
    1.29 -@ContainerFor(Bar.class)
    1.30  @interface BarContainer {
    1.31      Bar[] value();
    1.32  }

mercurial