langtools/test/tools/javac/annotations/repeatingAnnotations/combo/DeprecatedAnnoCombo.java
changeset 15356 cf312dc54c60
parent 14451 c18762e096ae
child 30730 d3ce7619db2c
equal deleted inserted replaced
15355:a4757c33cae9 15356:cf312dc54c60
     1 /*
     1 /*
     2  * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
   113         StringBuilder annoData = new StringBuilder();
   113         StringBuilder annoData = new StringBuilder();
   114 
   114 
   115         switch(className) {
   115         switch(className) {
   116         case "DeprecatedonBoth":
   116         case "DeprecatedonBoth":
   117             annoData.append(Helper.ContentVars.DEPRECATED.getVal())
   117             annoData.append(Helper.ContentVars.DEPRECATED.getVal())
   118                     .append(Helper.ContentVars.CONTAINERFOR.getVal())
       
   119                     .append(Helper.ContentVars.CONTAINER.getVal())
   118                     .append(Helper.ContentVars.CONTAINER.getVal())
   120                     .append(Helper.ContentVars.DEPRECATED.getVal())
   119                     .append(Helper.ContentVars.DEPRECATED.getVal())
   121                     .append(Helper.ContentVars.CONTAINEDBY.getVal())
   120                     .append(Helper.ContentVars.REPEATABLE.getVal())
   122                     .append(Helper.ContentVars.BASE.getVal());
   121                     .append(Helper.ContentVars.BASE.getVal());
   123             break;
   122             break;
   124         case "DeprecatedonBase":
   123         case "DeprecatedonBase":
   125             annoData.append(Helper.ContentVars.CONTAINERFOR.getVal())
   124             annoData.append(Helper.ContentVars.CONTAINER.getVal())
   126                     .append(Helper.ContentVars.CONTAINER.getVal())
       
   127                     .append(Helper.ContentVars.DEPRECATED.getVal())
   125                     .append(Helper.ContentVars.DEPRECATED.getVal())
   128                     .append(Helper.ContentVars.CONTAINEDBY.getVal())
   126                     .append(Helper.ContentVars.REPEATABLE.getVal())
   129                     .append(Helper.ContentVars.BASE.getVal());
   127                     .append(Helper.ContentVars.BASE.getVal());
   130             break;
   128             break;
   131         case "DeprecatedonContainer":
   129         case "DeprecatedonContainer":
   132             annoData.append(Helper.ContentVars.DEPRECATED.getVal())
   130             annoData.append(Helper.ContentVars.DEPRECATED.getVal())
   133                     .append(Helper.ContentVars.CONTAINERFOR.getVal())
       
   134                     .append(Helper.ContentVars.CONTAINER.getVal())
   131                     .append(Helper.ContentVars.CONTAINER.getVal())
   135                     .append(Helper.ContentVars.CONTAINEDBY.getVal())
   132                     .append(Helper.ContentVars.REPEATABLE.getVal())
   136                     .append(Helper.ContentVars.BASE.getVal());
   133                     .append(Helper.ContentVars.BASE.getVal());
   137             break;
   134             break;
   138         }
   135         }
   139 
   136 
   140         String contents = Helper.ContentVars.IMPORTCONTAINERSTMTS.getVal()
   137         String contents = Helper.ContentVars.IMPORTCONTAINERSTMTS.getVal()