8153243: make docs should generate JShell API docs
authorjlahoda
Fri, 08 Apr 2016 11:52:46 +0200
changeset 37004 ff77b7986967
parent 37003 12ece14d32e0
child 37005 71210037624f
8153243: make docs should generate JShell API docs Summary: Tweaking JShell javadoc so that it can be built without warnings/errors. Reviewed-by: rfield, erikj
langtools/src/jdk.jshell/share/classes/jdk/jshell/Diag.java
langtools/src/jdk.jshell/share/classes/jdk/jshell/JShell.java
--- a/langtools/src/jdk.jshell/share/classes/jdk/jshell/Diag.java	Fri Apr 08 10:52:26 2016 +0100
+++ b/langtools/src/jdk.jshell/share/classes/jdk/jshell/Diag.java	Fri Apr 08 11:52:46 2016 +0200
@@ -55,8 +55,7 @@
      * <p>{@code getPosition() <= getEndPosition()}
      *
      * @return character offset from beginning of source; {@link
-     * #NOPOS} if {@link #getSource()} would return {@code null} or if
-     * no location is suitable
+     * #NOPOS} if the position is not available.
      */
     public abstract long getPosition();
 
--- a/langtools/src/jdk.jshell/share/classes/jdk/jshell/JShell.java	Fri Apr 08 10:52:26 2016 +0100
+++ b/langtools/src/jdk.jshell/share/classes/jdk/jshell/JShell.java	Fri Apr 08 11:52:46 2016 +0200
@@ -384,7 +384,7 @@
     /**
      * The specified path is added to the end of the classpath used in eval().
      * Note that the unnamed package is not accessible from the package in which
-     * {@link JShell#eval()} code is placed.
+     * {@link JShell#eval(String)} code is placed.
      * @param path the path to add to the classpath.
      */
     public void addToClasspath(String path) {