diff src/main/java/nl/cwi/monetdb/mcl/parser/MCLParser.java @ 297:bb273e9c7e09

Add "final" keyword to classes, method arguments and local variables where possible. In Mapisocket.java replaced 4 log methods with 1 method with 2 extra parameters for more flexibility and less code. Resolved javadoc warning for MonetSavepoint.java
author Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
date Thu, 08 Aug 2019 20:19:45 +0200 (2019-08-08)
parents d4baf8a4b43a
children 0fcf338ce0b4
line wrap: on
line diff
--- a/src/main/java/nl/cwi/monetdb/mcl/parser/MCLParser.java
+++ b/src/main/java/nl/cwi/monetdb/mcl/parser/MCLParser.java
@@ -35,7 +35,7 @@ public abstract class MCLParser {
 	 *
 	 * @param capacity the number of field values to expect
 	 */
-	protected MCLParser(int capacity) {
+	protected MCLParser(final int capacity) {
 		values = new String[capacity];
 	}
 
@@ -50,7 +50,7 @@ public abstract class MCLParser {
 	 * @see #next()
 	 * @see #hasNext()
 	 */
-	abstract public int parse(String source) throws MCLParseException;
+	abstract public int parse(final String source) throws MCLParseException;
 
 	/**
 	 * Repositions the internal field offset to the start, such that the