You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sl...@apache.org on 2020/07/09 13:31:58 UTC
[maven-doxia] 05/06: [DOXIA-614] Fix AbstractParser JavaDoc comments
This is an automated email from the ASF dual-hosted git repository.
slachiewicz pushed a commit to branch DOXIA-614/support-source-reference-in-doxia-parser
in repository https://gitbox.apache.org/repos/asf/maven-doxia.git
commit bbff8bcf63b3e6675b7fb38f45cdf25a34441c98
Author: Abel Salgado Romero <ab...@gmail.com>
AuthorDate: Tue Jun 30 22:33:43 2020 +0200
[DOXIA-614] Fix AbstractParser JavaDoc comments
---
.../apache/maven/doxia/parser/AbstractParser.java | 38 +++++++++++-----------
1 file changed, 19 insertions(+), 19 deletions(-)
diff --git a/doxia-core/src/main/java/org/apache/maven/doxia/parser/AbstractParser.java b/doxia-core/src/main/java/org/apache/maven/doxia/parser/AbstractParser.java
index 7471ff8..b46d6f4 100644
--- a/doxia-core/src/main/java/org/apache/maven/doxia/parser/AbstractParser.java
+++ b/doxia-core/src/main/java/org/apache/maven/doxia/parser/AbstractParser.java
@@ -101,7 +101,7 @@ public abstract class AbstractParser
/**
* {@inheritDoc}
*
- * @return a int.
+ * @return a int
*/
public int getType()
{
@@ -117,7 +117,7 @@ public abstract class AbstractParser
/**
* <p>isEmitComments.</p>
*
- * @return a boolean.
+ * @return a boolean
*/
public boolean isEmitComments()
{
@@ -127,11 +127,11 @@ public abstract class AbstractParser
/**
* Execute a macro on the given sink.
*
- * @param macroId An id to lookup the macro.
- * @param request The corresponding MacroRequest.
- * @param sink The sink to receive the events.
- * @throws org.apache.maven.doxia.macro.MacroExecutionException if an error occurred during execution.
- * @throws org.apache.maven.doxia.macro.manager.MacroNotFoundException if the macro could not be found.
+ * @param macroId an id to lookup the macro
+ * @param request the corresponding MacroRequest
+ * @param sink the sink to receive the events
+ * @throws org.apache.maven.doxia.macro.MacroExecutionException if an error occurred during execution
+ * @throws org.apache.maven.doxia.macro.manager.MacroNotFoundException if the macro could not be found
*/
// Made public right now because of the structure of the APT parser and
// all its inner classes.
@@ -148,7 +148,7 @@ public abstract class AbstractParser
/**
* Returns the current base directory.
*
- * @return The base directory.
+ * @return the base directory
* @deprecated this does not work in multi-module builds, see DOXIA-373
*/
protected File getBasedir()
@@ -171,9 +171,9 @@ public abstract class AbstractParser
*
* Convenience method to parse an arbitrary string and emit events into the given sink.
*
- * @param string A string that provides the source input.
- * @param sink A sink that consumes the Doxia events.
- * @throws org.apache.maven.doxia.parser.ParseException if the string could not be parsed.
+ * @param string a string that provides the source input
+ * @param sink a sink that consumes the Doxia events
+ * @throws org.apache.maven.doxia.parser.ParseException if the string could not be parsed
* @since 1.1
*/
public void parse( String string, Sink sink )
@@ -187,10 +187,10 @@ public abstract class AbstractParser
*
* Convenience method to parse an arbitrary string and emit events into the given sink.
*
- * @param string A string that provides the source input.
- * @param sink A sink that consumes the Doxia events.
- * @param reference A string containing the reference to the source of the input string (e.g. filename).
- * @throws org.apache.maven.doxia.parser.ParseException if the string could not be parsed.
+ * @param string a string that provides the source input
+ * @param sink a sink that consumes the Doxia events
+ * @param reference a string containing the reference to the source of the input string (e.g. filename)
+ * @throws org.apache.maven.doxia.parser.ParseException if the string could not be parsed
* @since 1.9.2
*/
public void parse( String string, Sink sink, String reference )
@@ -210,7 +210,7 @@ public abstract class AbstractParser
/**
* Set <code>secondParsing</code> to true, if we need a second parsing.
*
- * @param second True for second parsing.
+ * @param second true for second parsing
*/
public void setSecondParsing( boolean second )
{
@@ -220,7 +220,7 @@ public abstract class AbstractParser
/**
* Indicates if we are currently parsing a second time.
*
- * @return true if we are currently parsing a second time.
+ * @return true if we are currently parsing a second time
* @since 1.1
*/
protected boolean isSecondParsing()
@@ -254,7 +254,7 @@ public abstract class AbstractParser
/**
* Gets the current {@link MacroManager}.
*
- * @return The current {@link MacroManager}.
+ * @return the current {@link MacroManager}
* @since 1.1
*/
protected MacroManager getMacroManager()
@@ -277,7 +277,7 @@ public abstract class AbstractParser
/**
* The current Doxia version.
*
- * @return the current Doxia version as a String.
+ * @return the current Doxia version as a String
* @since 1.2
*/
protected static String doxiaVersion()