src/share/classes/com/sun/tools/javac/main/Main.java

changeset 1668
991f11e13598
parent 1569
475eb15dfdad
child 1728
43c2f7cb9c76
equal deleted inserted replaced
1667:a200d8ccfe47 1668:991f11e13598
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

mercurial