@@ -109,7 +109,7 @@ protected boolean supportsEStrings() {
109109 /**
110110 * Override to enable hash (#) line comments (MySQL/MariaDB-style).
111111 * When false (default), '#' is treated as a regular character.
112- * When true, '#' (not followed by '> ') starts a line comment.
112+ * When true, '#' (not followed by '> ') starts a line comment.
113113 * @return true if hash should be treated as a line comment starter
114114 */
115115 protected boolean supportsHashComments () {
@@ -169,6 +169,8 @@ protected String checkAdditionalDelimiter(String remaining, ParserState state) {
169169 * implicit reference to the enclosing {@code AbstractSqlSplitter} instance to invoke
170170 * those methods. Handlers with no such dependency are declared {@code static} to avoid
171171 * the unnecessary enclosing reference. This is an intentional design choice.
172+ *
173+ * @return ordered list of character handlers
172174 */
173175 protected List <CharacterHandler > buildHandlers () {
174176 List <CharacterHandler > handlers = new ArrayList <>();
@@ -323,6 +325,12 @@ protected KeywordHandlingResult handleDialectKeywords(String sql, int index, Par
323325 /**
324326 * Generic keyword handling for BEGIN, CASE, END.
325327 * Subclasses should call this for standard keyword processing.
328+ *
329+ * @param sql the full SQL string being parsed
330+ * @param index the current position in the SQL string
331+ * @param state the current parser state
332+ * @param output the output buffer for the current statement
333+ * @return the updated index after processing
326334 */
327335 protected int handleGenericKeywords (String sql , int index , ParserState state , StringBuilder output ) {
328336 String remaining = sql .substring (index ).toUpperCase ();
@@ -557,7 +565,7 @@ public int handle(String sql, int index, ParserState state, StringBuilder output
557565
558566 /**
559567 * Handles line comments: -- and #
560- * Respects JSON operators like #>, #>>, -> , and ->> (not treated as comments).
568+ * Respects JSON operators like {@code #>}, {@code #>>}, {@code ->} , and {@code ->>} (not treated as comments).
561569 */
562570 protected class LineCommentHandler implements CharacterHandler {
563571 @ Override
0 commit comments