1 /* |
1 /* |
2 * Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1999, 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. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
495 } |
495 } |
496 } |
496 } |
497 if (!(doclintOpts.size() == 1 |
497 if (!(doclintOpts.size() == 1 |
498 && doclintOpts.iterator().next().equals(DocLint.XMSGS_CUSTOM_PREFIX + "none"))) { |
498 && doclintOpts.iterator().next().equals(DocLint.XMSGS_CUSTOM_PREFIX + "none"))) { |
499 JavacTask t = BasicJavacTask.instance(context); |
499 JavacTask t = BasicJavacTask.instance(context); |
|
500 // standard doclet normally generates H1, H2 |
|
501 doclintOpts.add(DocLint.XIMPLICIT_HEADERS + "2"); |
500 new DocLint().init(t, doclintOpts.toArray(new String[doclintOpts.size()])); |
502 new DocLint().init(t, doclintOpts.toArray(new String[doclintOpts.size()])); |
501 comp.keepComments = true; |
503 comp.keepComments = true; |
502 } |
504 } |
503 } |
505 } |
504 |
506 |