8075703: jdk.javadoc module exports com.sun.tools.javadoc package which contains a lot of internal API

Reviewed-by: ksrini
This commit is contained in:
Jonathan Gibbons 2016-05-09 16:52:15 -07:00
parent dd927b90d5
commit daca004ce5
47 changed files with 56 additions and 54 deletions

View File

@ -28,7 +28,7 @@ package com.sun.tools.doclets.formats.html;
import java.util.*;
import com.sun.javadoc.*;
import com.sun.tools.javadoc.RootDocImpl;
import com.sun.tools.javadoc.main.RootDocImpl;
import com.sun.tools.doclets.formats.html.markup.*;
import com.sun.tools.doclets.internal.toolkit.*;
import com.sun.tools.doclets.internal.toolkit.builders.*;

View File

@ -40,7 +40,7 @@ import com.sun.tools.doclint.DocLint;
import com.sun.tools.javac.file.JavacFileManager;
import com.sun.tools.javac.util.Context;
import com.sun.tools.javac.util.StringUtils;
import com.sun.tools.javadoc.RootDocImpl;
import com.sun.tools.javadoc.main.RootDocImpl;
/**
* Configure the output based on the command line options.

View File

@ -149,8 +149,8 @@ public class SourceToHTMLConverter {
return;
Reader r;
// temp hack until we can update SourcePosition API.
if (sp instanceof com.sun.tools.javadoc.SourcePositionImpl) {
FileObject fo = ((com.sun.tools.javadoc.SourcePositionImpl) sp).fileObject();
if (sp instanceof com.sun.tools.javadoc.main.SourcePositionImpl) {
FileObject fo = ((com.sun.tools.javadoc.main.SourcePositionImpl) sp).fileObject();
if (fo == null)
return;
r = fo.openReader(true);

View File

@ -27,6 +27,8 @@ package com.sun.tools.javadoc;
import java.io.PrintWriter;
import com.sun.tools.javadoc.main.Start;
/**
* Provides external entry points (tool and programmatic)
* for the javadoc program.

View File

@ -23,7 +23,7 @@
* questions.
*/
package com.sun.tools.javadoc;
package com.sun.tools.javadoc.main;
import com.sun.javadoc.*;

View File

@ -23,7 +23,7 @@
* questions.
*/
package com.sun.tools.javadoc;
package com.sun.tools.javadoc.main;
import com.sun.javadoc.*;
import com.sun.tools.javac.code.Attribute;

View File

@ -23,7 +23,7 @@
* questions.
*/
package com.sun.tools.javadoc;
package com.sun.tools.javadoc.main;
import com.sun.javadoc.*;

View File

@ -23,7 +23,7 @@
* questions.
*/
package com.sun.tools.javadoc;
package com.sun.tools.javadoc.main;
import com.sun.javadoc.*;

View File

@ -23,7 +23,7 @@
* questions.
*/
package com.sun.tools.javadoc;
package com.sun.tools.javadoc.main;
import com.sun.javadoc.*;

View File

@ -23,7 +23,7 @@
* questions.
*/
package com.sun.tools.javadoc;
package com.sun.tools.javadoc.main;
import com.sun.javadoc.*;

View File

@ -23,7 +23,7 @@
* questions.
*/
package com.sun.tools.javadoc;
package com.sun.tools.javadoc.main;
import java.io.File;
import java.io.IOException;

View File

@ -23,7 +23,7 @@
* questions.
*/
package com.sun.tools.javadoc;
package com.sun.tools.javadoc.main;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

View File

@ -23,7 +23,7 @@
* questions.
*/
package com.sun.tools.javadoc;
package com.sun.tools.javadoc.main;
import com.sun.javadoc.*;

View File

@ -23,7 +23,7 @@
* questions.
*/
package com.sun.tools.javadoc;
package com.sun.tools.javadoc.main;
import java.lang.reflect.Modifier;
import java.util.*;

View File

@ -23,7 +23,7 @@
* questions.
*/
package com.sun.tools.javadoc;
package com.sun.tools.javadoc.main;
import java.io.DataInputStream;
import java.io.IOException;

View File

@ -23,7 +23,7 @@
* questions.
*/
package com.sun.tools.javadoc;
package com.sun.tools.javadoc.main;
import java.text.BreakIterator;
import java.text.Collator;

View File

@ -23,7 +23,7 @@
* questions.
*/
package com.sun.tools.javadoc;
package com.sun.tools.javadoc.main;
import java.io.File;
import java.io.IOException;

View File

@ -23,7 +23,7 @@
* questions.
*/
package com.sun.tools.javadoc;
package com.sun.tools.javadoc.main;
import java.lang.reflect.Modifier;
import java.text.CollationKey;

View File

@ -23,7 +23,7 @@
* questions.
*/
package com.sun.tools.javadoc;
package com.sun.tools.javadoc.main;
import com.sun.source.util.TreePath;
import java.lang.reflect.Modifier;

View File

@ -23,7 +23,7 @@
* questions.
*/
package com.sun.tools.javadoc;
package com.sun.tools.javadoc.main;
import java.util.EnumSet;
import javax.tools.JavaFileObject;

View File

@ -23,7 +23,7 @@
* questions.
*/
package com.sun.tools.javadoc;
package com.sun.tools.javadoc.main;
import javax.tools.JavaFileObject;

View File

@ -23,7 +23,7 @@
* questions.
*/
package com.sun.tools.javadoc;
package com.sun.tools.javadoc.main;
import com.sun.source.util.TreePath;
import com.sun.tools.javac.code.Flags;

View File

@ -23,7 +23,7 @@
* questions.
*/
package com.sun.tools.javadoc;
package com.sun.tools.javadoc.main;
import com.sun.tools.javac.comp.*;
import com.sun.tools.javac.util.*;

View File

@ -23,7 +23,7 @@
* questions.
*/
package com.sun.tools.javadoc;
package com.sun.tools.javadoc.main;
import java.io.File;
import java.io.IOException;

View File

@ -23,7 +23,7 @@
* questions.
*/
package com.sun.tools.javadoc;
package com.sun.tools.javadoc.main;
import com.sun.javadoc.*;

View File

@ -23,7 +23,7 @@
* questions.
*/
package com.sun.tools.javadoc;
package com.sun.tools.javadoc.main;
import java.io.PrintWriter;
import java.util.Locale;

View File

@ -23,7 +23,7 @@
* questions.
*/
package com.sun.tools.javadoc;
package com.sun.tools.javadoc.main;
import java.lang.reflect.Modifier;

View File

@ -23,7 +23,7 @@
* questions.
*/
package com.sun.tools.javadoc;
package com.sun.tools.javadoc.main;
import static com.sun.tools.javac.code.Flags.*;

View File

@ -23,7 +23,7 @@
* questions.
*/
package com.sun.tools.javadoc;
package com.sun.tools.javadoc.main;
import java.io.IOException;
import java.io.InputStream;

View File

@ -23,7 +23,7 @@
* questions.
*/
package com.sun.tools.javadoc;
package com.sun.tools.javadoc.main;
import java.util.regex.*;

View File

@ -23,7 +23,7 @@
* questions.
*/
package com.sun.tools.javadoc;
package com.sun.tools.javadoc.main;
import com.sun.javadoc.*;

View File

@ -23,7 +23,7 @@
* questions.
*/
package com.sun.tools.javadoc;
package com.sun.tools.javadoc.main;
import com.sun.javadoc.*;

View File

@ -23,7 +23,7 @@
* questions.
*/
package com.sun.tools.javadoc;
package com.sun.tools.javadoc.main;
import com.sun.javadoc.*;

View File

@ -23,7 +23,7 @@
* questions.
*/
package com.sun.tools.javadoc;
package com.sun.tools.javadoc.main;
import java.lang.reflect.Modifier;
import java.text.CollationKey;

View File

@ -23,7 +23,7 @@
* questions.
*/
package com.sun.tools.javadoc;
package com.sun.tools.javadoc.main;
import java.io.IOException;
import java.util.Collection;

View File

@ -23,7 +23,7 @@
* questions.
*/
package com.sun.tools.javadoc;
package com.sun.tools.javadoc.main;
import java.io.File;
import java.util.Locale;

View File

@ -23,7 +23,7 @@
* questions.
*/
package com.sun.tools.javadoc;
package com.sun.tools.javadoc.main;
import com.sun.javadoc.*;

View File

@ -23,7 +23,7 @@
* questions.
*/
package com.sun.tools.javadoc;
package com.sun.tools.javadoc.main;
import com.sun.javadoc.*;
import com.sun.tools.javac.code.*;

View File

@ -23,7 +23,7 @@
* questions.
*/
package com.sun.tools.javadoc;
package com.sun.tools.javadoc.main;
import java.io.File;
import javax.tools.FileObject;

View File

@ -23,7 +23,7 @@
* questions.
*/
package com.sun.tools.javadoc;
package com.sun.tools.javadoc.main;
import java.io.File;
import java.io.FileNotFoundException;
@ -95,7 +95,7 @@ public class Start extends ToolOption.Helper {
private JavaFileManager fileManager;
Start(String programName,
public Start(String programName,
PrintWriter errWriter,
PrintWriter warnWriter,
PrintWriter noticeWriter,
@ -119,11 +119,11 @@ public class Start extends ToolOption.Helper {
this.docletParentClassLoader = docletParentClassLoader;
}
Start(String programName, String defaultDocletClassName) {
public Start(String programName, String defaultDocletClassName) {
this(programName, defaultDocletClassName, null);
}
Start(String programName, String defaultDocletClassName,
public Start(String programName, String defaultDocletClassName,
ClassLoader docletParentClassLoader) {
context = new Context();
messager = new Messager(context, programName);
@ -131,15 +131,15 @@ public class Start extends ToolOption.Helper {
this.docletParentClassLoader = docletParentClassLoader;
}
Start(String programName, ClassLoader docletParentClassLoader) {
public Start(String programName, ClassLoader docletParentClassLoader) {
this(programName, standardDocletClassName, docletParentClassLoader);
}
Start(String programName) {
public Start(String programName) {
this(programName, standardDocletClassName);
}
Start(ClassLoader docletParentClassLoader) {
public Start(ClassLoader docletParentClassLoader) {
this(javadocName, docletParentClassLoader);
}

View File

@ -23,7 +23,7 @@
* questions.
*/
package com.sun.tools.javadoc;
package com.sun.tools.javadoc.main;
import com.sun.javadoc.*;

View File

@ -23,7 +23,7 @@
* questions.
*/
package com.sun.tools.javadoc;
package com.sun.tools.javadoc.main;
import com.sun.javadoc.*;

View File

@ -23,7 +23,7 @@
* questions.
*/
package com.sun.tools.javadoc;
package com.sun.tools.javadoc.main;
import java.util.LinkedHashMap;
import java.util.Map;

View File

@ -23,7 +23,7 @@
* questions.
*/
package com.sun.tools.javadoc;
package com.sun.tools.javadoc.main;
import com.sun.javadoc.*;
import com.sun.tools.javac.code.Symbol;

View File

@ -23,7 +23,7 @@
* questions.
*/
package com.sun.tools.javadoc;
package com.sun.tools.javadoc.main;
import com.sun.javadoc.*;

View File

@ -23,7 +23,7 @@
* questions.
*/
package com.sun.tools.javadoc;
package com.sun.tools.javadoc.main;
import com.sun.javadoc.*;

View File

@ -283,8 +283,8 @@ public class Start extends ToolOption.Helper {
}
} else {
if (this.apiMode) {
com.sun.tools.javadoc.Start ostart
= new com.sun.tools.javadoc.Start(context);
com.sun.tools.javadoc.main.Start ostart
= new com.sun.tools.javadoc.main.Start(context);
return ostart.begin(docletClass, options, fileObjects);
}
warn("main.legacy_api");