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

changeset 1492
df694c775e8a
parent 1386
bf76f4190ef8
child 2525
2eb010b6cb22
     1.1 --- a/test/tools/javac/annotations/repeatingAnnotations/MultipleAnnoMixedOrder.java	Mon Jan 14 19:52:36 2013 +0100
     1.2 +++ b/test/tools/javac/annotations/repeatingAnnotations/MultipleAnnoMixedOrder.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 @@ -29,25 +29,22 @@
    1.11   * @compile MultipleAnnoMixedOrder.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 -@ContainedBy(FooContainer.class)
    1.19 +@Repeatable(FooContainer.class)
    1.20  @interface Foo {
    1.21      int getNumbers();
    1.22  }
    1.23  
    1.24 -@ContainerFor(Foo.class)
    1.25  @interface FooContainer {
    1.26    Foo[] value();
    1.27  }
    1.28  
    1.29 -@ContainedBy(BazContainer.class)
    1.30 +@Repeatable(BazContainer.class)
    1.31  @interface Baz {
    1.32      String getStr();
    1.33  }
    1.34  
    1.35 -@ContainerFor(Baz.class)
    1.36  @interface BazContainer {
    1.37    Baz[] value();
    1.38  }

mercurial