langtools/src/share/classes/com/sun/tools/javac/sym/CreateSymbols.java
changeset 13689 4d519199a6aa
parent 5847 1908176fd6e3
child 14949 45f43822bbde
equal deleted inserted replaced
13636:bee2d435e11f 13689:4d519199a6aa
     1 /*
     1 /*
     2  * Copyright (c) 2006, 2008, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2006, 2012, 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.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   204                 System.err.println("Ignoring (bad) " + sym.getQualifiedName());
   204                 System.err.println("Ignoring (bad) " + sym.getQualifiedName());
   205                 continue;
   205                 continue;
   206             }
   206             }
   207             ClassSymbol cs = (ClassSymbol) sym;
   207             ClassSymbol cs = (ClassSymbol) sym;
   208             if (addLegacyAnnotation) {
   208             if (addLegacyAnnotation) {
   209                 cs.attributes_field = (cs.attributes_field == null)
   209                 cs.annotations.prepend(List.of(proprietary));
   210                     ? List.of(proprietary)
       
   211                     : cs.attributes_field.prepend(proprietary);
       
   212             }
   210             }
   213             writeClass(pool, cs, writer);
   211             writeClass(pool, cs, writer);
   214         }
   212         }
   215 
   213 
   216         if (false) {
   214         if (false) {