langtools/src/share/classes/com/sun/tools/javac/comp/Annotate.java
changeset 22165 ec53c8946fc2
parent 22163 3651128c74eb
child 22439 4785d87cd2d6
equal deleted inserted replaced
22164:c8eb1ae29c58 22165:ec53c8946fc2
   506 
   506 
   507         if (!repeated.isEmpty()) {
   507         if (!repeated.isEmpty()) {
   508             repeated = repeated.reverse();
   508             repeated = repeated.reverse();
   509             TreeMaker m = make.at(ctx.pos.get(firstOccurrence));
   509             TreeMaker m = make.at(ctx.pos.get(firstOccurrence));
   510             Pair<MethodSymbol, Attribute> p =
   510             Pair<MethodSymbol, Attribute> p =
   511                     new Pair<>(containerValueSymbol,
   511                     new Pair<MethodSymbol, Attribute>(containerValueSymbol,
   512                                new Attribute.Array(arrayOfOrigAnnoType, repeated));
   512                                new Attribute.Array(arrayOfOrigAnnoType, repeated));
   513             if (ctx.isTypeCompound) {
   513             if (ctx.isTypeCompound) {
   514                 /* TODO: the following code would be cleaner:
   514                 /* TODO: the following code would be cleaner:
   515                 Attribute.TypeCompound at = new Attribute.TypeCompound(targetContainerType, List.of(p),
   515                 Attribute.TypeCompound at = new Attribute.TypeCompound(targetContainerType, List.of(p),
   516                         ((Attribute.TypeCompound)annotations.head).position);
   516                         ((Attribute.TypeCompound)annotations.head).position);