src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/WorkArounds.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2015, 2019, 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 |
139 doclintOpts.add(DocLint.XCUSTOM_TAGS_PREFIX + customTags.toString()); |
139 doclintOpts.add(DocLint.XCUSTOM_TAGS_PREFIX + customTags.toString()); |
140 doclintOpts.add(DocLint.XHTML_VERSION_PREFIX + "html5"); |
140 doclintOpts.add(DocLint.XHTML_VERSION_PREFIX + "html5"); |
141 |
141 |
142 JavacTask t = BasicJavacTask.instance(toolEnv.context); |
142 JavacTask t = BasicJavacTask.instance(toolEnv.context); |
143 doclint = new DocLint(); |
143 doclint = new DocLint(); |
144 // standard doclet normally generates H1, H2 |
|
145 doclintOpts.add(DocLint.XIMPLICIT_HEADERS + "2"); |
|
146 doclint.init(t, doclintOpts.toArray(new String[doclintOpts.size()]), false); |
144 doclint.init(t, doclintOpts.toArray(new String[doclintOpts.size()]), false); |
147 } |
145 } |
148 |
146 |
149 // TODO: fix this up correctly |
147 // TODO: fix this up correctly |
150 public boolean haveDocLint() { |
148 public boolean haveDocLint() { |