equal
deleted
inserted
replaced
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) { |