Repository: groovy
Updated Branches:
  refs/heads/master be3f41431 -> 4c829ca39


http://git-wip-us.apache.org/repos/asf/groovy/blob/4c829ca3/subprojects/groovy-jmx/src/main/java/groovy/jmx/builder/JmxEventEmitter.java
----------------------------------------------------------------------
diff --git 
a/subprojects/groovy-jmx/src/main/java/groovy/jmx/builder/JmxEventEmitter.java 
b/subprojects/groovy-jmx/src/main/java/groovy/jmx/builder/JmxEventEmitter.java
index c4283a8..9122b9f 100644
--- 
a/subprojects/groovy-jmx/src/main/java/groovy/jmx/builder/JmxEventEmitter.java
+++ 
b/subprojects/groovy-jmx/src/main/java/groovy/jmx/builder/JmxEventEmitter.java
@@ -98,11 +98,7 @@ public class JmxEventEmitter extends 
NotificationBroadcasterSupport implements J
     }
 
     private static class NumberSequencer {
-        private static AtomicLong num;
-
-        static {
-            num = new AtomicLong(0);
-        }
+        private static final AtomicLong num = new AtomicLong(0);
 
         public static long getNextSequence() {
             return num.incrementAndGet();

http://git-wip-us.apache.org/repos/asf/groovy/blob/4c829ca3/subprojects/groovy-json/src/main/java/groovy/json/JsonDelegate.java
----------------------------------------------------------------------
diff --git 
a/subprojects/groovy-json/src/main/java/groovy/json/JsonDelegate.java 
b/subprojects/groovy-json/src/main/java/groovy/json/JsonDelegate.java
index 23969dc..ed73e14 100644
--- a/subprojects/groovy-json/src/main/java/groovy/json/JsonDelegate.java
+++ b/subprojects/groovy-json/src/main/java/groovy/json/JsonDelegate.java
@@ -32,7 +32,7 @@ import java.util.*;
  */
 public class JsonDelegate extends GroovyObjectSupport {
 
-    private Map<String, Object> content = new LinkedHashMap<String, Object>();
+    private final Map<String, Object> content = new LinkedHashMap<String, 
Object>();
 
     /**
      * Intercepts calls for setting a key and value for a JSON object

http://git-wip-us.apache.org/repos/asf/groovy/blob/4c829ca3/subprojects/groovy-json/src/main/java/groovy/json/JsonLexer.java
----------------------------------------------------------------------
diff --git a/subprojects/groovy-json/src/main/java/groovy/json/JsonLexer.java 
b/subprojects/groovy-json/src/main/java/groovy/json/JsonLexer.java
index b5ab018..2d49b16 100644
--- a/subprojects/groovy-json/src/main/java/groovy/json/JsonLexer.java
+++ b/subprojects/groovy-json/src/main/java/groovy/json/JsonLexer.java
@@ -43,7 +43,7 @@ public class JsonLexer implements Iterator<JsonToken> {
     private static final char ZERO     = '0';
     private static final char NINE     = '9';
 
-    private LineColumnReader reader;
+    private final LineColumnReader reader;
 
     /**
      * Underlying reader from which to read the JSON tokens.

http://git-wip-us.apache.org/repos/asf/groovy/blob/4c829ca3/subprojects/groovy-json/src/main/java/groovy/json/JsonTokenType.java
----------------------------------------------------------------------
diff --git 
a/subprojects/groovy-json/src/main/java/groovy/json/JsonTokenType.java 
b/subprojects/groovy-json/src/main/java/groovy/json/JsonTokenType.java
index 73fef5c..ac819b2 100644
--- a/subprojects/groovy-json/src/main/java/groovy/json/JsonTokenType.java
+++ b/subprojects/groovy-json/src/main/java/groovy/json/JsonTokenType.java
@@ -61,12 +61,12 @@ public enum JsonTokenType {
     /**
      * A String constant or a Pattern, serving as a validator for matching 
tokens.
      */
-    private Object validator;
+    private final Object validator;
 
     /**
      * A label describing the token
      */
-    private String label;
+    private final String label;
 
     /**
      * Construct a token type with a label and a validator

http://git-wip-us.apache.org/repos/asf/groovy/blob/4c829ca3/subprojects/groovy-json/src/main/java/groovy/json/StreamingJsonBuilder.java
----------------------------------------------------------------------
diff --git 
a/subprojects/groovy-json/src/main/java/groovy/json/StreamingJsonBuilder.java 
b/subprojects/groovy-json/src/main/java/groovy/json/StreamingJsonBuilder.java
index 05dbcdc..a3e6b9d 100644
--- 
a/subprojects/groovy-json/src/main/java/groovy/json/StreamingJsonBuilder.java
+++ 
b/subprojects/groovy-json/src/main/java/groovy/json/StreamingJsonBuilder.java
@@ -74,7 +74,7 @@ public class StreamingJsonBuilder extends GroovyObjectSupport 
{
     private static final String DOUBLE_CLOSE_BRACKET = "}}";
     private static final String COLON_WITH_OPEN_BRACE = ":{";
 
-    private Writer writer;
+    private final Writer writer;
 
     /**
      * Instantiates a JSON builder.

http://git-wip-us.apache.org/repos/asf/groovy/blob/4c829ca3/subprojects/groovy-json/src/main/java/groovy/json/internal/NumberValue.java
----------------------------------------------------------------------
diff --git 
a/subprojects/groovy-json/src/main/java/groovy/json/internal/NumberValue.java 
b/subprojects/groovy-json/src/main/java/groovy/json/internal/NumberValue.java
index ffa5ffb..ec2a95a 100644
--- 
a/subprojects/groovy-json/src/main/java/groovy/json/internal/NumberValue.java
+++ 
b/subprojects/groovy-json/src/main/java/groovy/json/internal/NumberValue.java
@@ -38,7 +38,7 @@ public class NumberValue extends java.lang.Number implements 
Value {
     private boolean chopped;
     private int startIndex;
     private int endIndex;
-    private Type type;
+    private final Type type;
     private Object value;
 
     public NumberValue(Type type) {
@@ -46,7 +46,7 @@ public class NumberValue extends java.lang.Number implements 
Value {
     }
 
     public NumberValue() {
-
+        this.type = null;
     }
 
     public NumberValue(boolean chop, Type type, int startIndex, int endIndex, 
char[] buffer) {

http://git-wip-us.apache.org/repos/asf/groovy/blob/4c829ca3/subprojects/groovy-json/src/main/java/groovy/json/internal/ReaderCharacterSource.java
----------------------------------------------------------------------
diff --git 
a/subprojects/groovy-json/src/main/java/groovy/json/internal/ReaderCharacterSource.java
 
b/subprojects/groovy-json/src/main/java/groovy/json/internal/ReaderCharacterSource.java
index 8d4896a..22976bd 100644
--- 
a/subprojects/groovy-json/src/main/java/groovy/json/internal/ReaderCharacterSource.java
+++ 
b/subprojects/groovy-json/src/main/java/groovy/json/internal/ReaderCharacterSource.java
@@ -30,12 +30,12 @@ public class ReaderCharacterSource implements 
CharacterSource {
     private static final int MAX_TOKEN_SIZE = 5;
 
     private final Reader reader;
-    private int readAheadSize;
+    private final int readAheadSize;
     private int ch = -2;
 
     private boolean foundEscape;
 
-    private char[] readBuf;
+    private final char[] readBuf;
 
     private int index;
 

http://git-wip-us.apache.org/repos/asf/groovy/blob/4c829ca3/subprojects/groovy-jsr223/src/main/java/org/codehaus/groovy/jsr223/GroovyScriptEngineImpl.java
----------------------------------------------------------------------
diff --git 
a/subprojects/groovy-jsr223/src/main/java/org/codehaus/groovy/jsr223/GroovyScriptEngineImpl.java
 
b/subprojects/groovy-jsr223/src/main/java/org/codehaus/groovy/jsr223/GroovyScriptEngineImpl.java
index 06d6c89..90a5831 100644
--- 
a/subprojects/groovy-jsr223/src/main/java/org/codehaus/groovy/jsr223/GroovyScriptEngineImpl.java
+++ 
b/subprojects/groovy-jsr223/src/main/java/org/codehaus/groovy/jsr223/GroovyScriptEngineImpl.java
@@ -99,10 +99,10 @@ public class GroovyScriptEngineImpl extends 
AbstractScriptEngine implements Comp
     private static boolean debug = false;
 
     // script-string-to-generated Class map
-    private ManagedConcurrentValueMap<String, Class> classMap = new 
ManagedConcurrentValueMap<String, Class>(ReferenceBundle.getSoftBundle());
+    private final ManagedConcurrentValueMap<String, Class> classMap = new 
ManagedConcurrentValueMap<String, Class>(ReferenceBundle.getSoftBundle());
     // global closures map - this is used to simulate a single
     // global functions namespace 
-    private ManagedConcurrentValueMap<String, Closure> globalClosures = new 
ManagedConcurrentValueMap<String, Closure>(ReferenceBundle.getHardBundle());
+    private final ManagedConcurrentValueMap<String, Closure> globalClosures = 
new ManagedConcurrentValueMap<String, Closure>(ReferenceBundle.getHardBundle());
     // class loader for Groovy generated classes
     private GroovyClassLoader loader;
     // lazily initialized factory

http://git-wip-us.apache.org/repos/asf/groovy/blob/4c829ca3/subprojects/groovy-macro/src/main/groovy/org/codehaus/groovy/macro/runtime/MacroSubstitutionKey.java
----------------------------------------------------------------------
diff --git 
a/subprojects/groovy-macro/src/main/groovy/org/codehaus/groovy/macro/runtime/MacroSubstitutionKey.java
 
b/subprojects/groovy-macro/src/main/groovy/org/codehaus/groovy/macro/runtime/MacroSubstitutionKey.java
index 3f72cff..5b382e5 100644
--- 
a/subprojects/groovy-macro/src/main/groovy/org/codehaus/groovy/macro/runtime/MacroSubstitutionKey.java
+++ 
b/subprojects/groovy-macro/src/main/groovy/org/codehaus/groovy/macro/runtime/MacroSubstitutionKey.java
@@ -30,10 +30,10 @@ import org.codehaus.groovy.ast.expr.Expression;
  */
 public class MacroSubstitutionKey {
 
-    private int startLine;
-    private int startColumn;
-    private int endLine;
-    private int endColumn;
+    private final int startLine;
+    private final int startColumn;
+    private final int endLine;
+    private final int endColumn;
 
     public MacroSubstitutionKey(int startLine, int startColumn, int endLine, 
int endColumn) {
         this.startLine = startLine;

http://git-wip-us.apache.org/repos/asf/groovy/blob/4c829ca3/subprojects/groovy-servlet/src/main/java/groovy/servlet/ServletBinding.java
----------------------------------------------------------------------
diff --git 
a/subprojects/groovy-servlet/src/main/java/groovy/servlet/ServletBinding.java 
b/subprojects/groovy-servlet/src/main/java/groovy/servlet/ServletBinding.java
index ad58122..bea4b55 100644
--- 
a/subprojects/groovy-servlet/src/main/java/groovy/servlet/ServletBinding.java
+++ 
b/subprojects/groovy-servlet/src/main/java/groovy/servlet/ServletBinding.java
@@ -123,7 +123,7 @@ public class ServletBinding extends Binding {
      * @author Jochen Theodorou
      */
     private static class ServletOutput {
-        private HttpServletResponse response;
+        private final HttpServletResponse response;
         private ServletOutputStream outputStream;
         private PrintWriter writer;
         

http://git-wip-us.apache.org/repos/asf/groovy/blob/4c829ca3/subprojects/groovy-servlet/src/main/java/groovy/servlet/TemplateServlet.java
----------------------------------------------------------------------
diff --git 
a/subprojects/groovy-servlet/src/main/java/groovy/servlet/TemplateServlet.java 
b/subprojects/groovy-servlet/src/main/java/groovy/servlet/TemplateServlet.java
index fb3e982..4c3e8be 100644
--- 
a/subprojects/groovy-servlet/src/main/java/groovy/servlet/TemplateServlet.java
+++ 
b/subprojects/groovy-servlet/src/main/java/groovy/servlet/TemplateServlet.java
@@ -117,11 +117,11 @@ public class TemplateServlet extends AbstractHttpServlet {
      */
     private static class TemplateCacheEntry {
 
-        Date date;
+        final Date date;
         long hit;
         long lastModified;
         long length;
-        Template template;
+        final Template template;
 
         public TemplateCacheEntry(File file, Template template, boolean 
timestamp) {
             if (template == null) {

http://git-wip-us.apache.org/repos/asf/groovy/blob/4c829ca3/subprojects/groovy-sql/src/main/java/groovy/sql/BatchingPreparedStatementWrapper.java
----------------------------------------------------------------------
diff --git 
a/subprojects/groovy-sql/src/main/java/groovy/sql/BatchingPreparedStatementWrapper.java
 
b/subprojects/groovy-sql/src/main/java/groovy/sql/BatchingPreparedStatementWrapper.java
index 24d11ff..9243266 100644
--- 
a/subprojects/groovy-sql/src/main/java/groovy/sql/BatchingPreparedStatementWrapper.java
+++ 
b/subprojects/groovy-sql/src/main/java/groovy/sql/BatchingPreparedStatementWrapper.java
@@ -38,9 +38,9 @@ import java.util.logging.Logger;
  */
 public class BatchingPreparedStatementWrapper extends BatchingStatementWrapper 
{
 
-    private PreparedStatement delegate;
-    private List<Tuple> indexPropList;
-    private Sql sql;
+    private final PreparedStatement delegate;
+    private final List<Tuple> indexPropList;
+    private final Sql sql;
 
     public BatchingPreparedStatementWrapper(PreparedStatement delegate, 
List<Tuple> indexPropList, int batchSize, Logger log, Sql sql) {
         super(delegate, batchSize, log);

http://git-wip-us.apache.org/repos/asf/groovy/blob/4c829ca3/subprojects/groovy-sql/src/main/java/groovy/sql/BatchingStatementWrapper.java
----------------------------------------------------------------------
diff --git 
a/subprojects/groovy-sql/src/main/java/groovy/sql/BatchingStatementWrapper.java 
b/subprojects/groovy-sql/src/main/java/groovy/sql/BatchingStatementWrapper.java
index 865e2d3..a5cecc2 100644
--- 
a/subprojects/groovy-sql/src/main/java/groovy/sql/BatchingStatementWrapper.java
+++ 
b/subprojects/groovy-sql/src/main/java/groovy/sql/BatchingStatementWrapper.java
@@ -34,7 +34,7 @@ import java.util.logging.Logger;
  * automatically. If batchSize is zero, then no batching is performed.
  */
 public class BatchingStatementWrapper extends GroovyObjectSupport {
-    private Statement delegate;
+    private final Statement delegate;
     protected int batchSize;
     protected int batchCount;
     protected Logger log;

http://git-wip-us.apache.org/repos/asf/groovy/blob/4c829ca3/subprojects/groovy-sql/src/main/java/groovy/sql/DataSet.java
----------------------------------------------------------------------
diff --git a/subprojects/groovy-sql/src/main/java/groovy/sql/DataSet.java 
b/subprojects/groovy-sql/src/main/java/groovy/sql/DataSet.java
index 0b4d08f..6e5f0f8 100644
--- a/subprojects/groovy-sql/src/main/java/groovy/sql/DataSet.java
+++ b/subprojects/groovy-sql/src/main/java/groovy/sql/DataSet.java
@@ -76,14 +76,14 @@ public class DataSet extends Sql {
     private Closure sort;
     private boolean reversed = false;
     private DataSet parent;
-    private String table;
+    private final String table;
     private SqlWhereVisitor visitor;
     private SqlOrderByVisitor sortVisitor;
     private String sql;
     private List<Object> params;
     private List<Object> batchData;
     private Set<String> batchKeys;
-    private Sql delegate;
+    private final Sql delegate;
     private boolean withinDataSetBatch = false;
 
     public DataSet(Sql sql, Class type) {

http://git-wip-us.apache.org/repos/asf/groovy/blob/4c829ca3/subprojects/groovy-sql/src/main/java/groovy/sql/GroovyResultSetProxy.java
----------------------------------------------------------------------
diff --git 
a/subprojects/groovy-sql/src/main/java/groovy/sql/GroovyResultSetProxy.java 
b/subprojects/groovy-sql/src/main/java/groovy/sql/GroovyResultSetProxy.java
index 14caf6c..844847f 100644
--- a/subprojects/groovy-sql/src/main/java/groovy/sql/GroovyResultSetProxy.java
+++ b/subprojects/groovy-sql/src/main/java/groovy/sql/GroovyResultSetProxy.java
@@ -43,7 +43,7 @@ import org.codehaus.groovy.runtime.InvokerHelper;
  */
 public final class GroovyResultSetProxy implements InvocationHandler {
 
-    private GroovyResultSetExtension extension;
+    private final GroovyResultSetExtension extension;
 
     /**
      * Creates a new proxy instance.
@@ -127,4 +127,4 @@ public final class GroovyResultSetProxy implements 
InvocationHandler {
                         this
                 );
     }
-}
\ No newline at end of file
+}

http://git-wip-us.apache.org/repos/asf/groovy/blob/4c829ca3/subprojects/groovy-sql/src/main/java/groovy/sql/ResultSetMetaDataWrapper.java
----------------------------------------------------------------------
diff --git 
a/subprojects/groovy-sql/src/main/java/groovy/sql/ResultSetMetaDataWrapper.java 
b/subprojects/groovy-sql/src/main/java/groovy/sql/ResultSetMetaDataWrapper.java
index c7613d0..a55840b 100644
--- 
a/subprojects/groovy-sql/src/main/java/groovy/sql/ResultSetMetaDataWrapper.java
+++ 
b/subprojects/groovy-sql/src/main/java/groovy/sql/ResultSetMetaDataWrapper.java
@@ -44,8 +44,8 @@ import org.codehaus.groovy.runtime.InvokerHelper;
 public class ResultSetMetaDataWrapper extends GroovyObjectSupport {
 
     private static final Object[] EMPTY_OBJECT_ARRAY = new Object[0];
-    private ResultSetMetaData target;
-    private int index;
+    private final ResultSetMetaData target;
+    private final int index;
 
     public ResultSetMetaDataWrapper(ResultSetMetaData target, int index) {
         this.target = target;

http://git-wip-us.apache.org/repos/asf/groovy/blob/4c829ca3/subprojects/groovy-sql/src/main/java/groovy/sql/SqlOrderByVisitor.java
----------------------------------------------------------------------
diff --git 
a/subprojects/groovy-sql/src/main/java/groovy/sql/SqlOrderByVisitor.java 
b/subprojects/groovy-sql/src/main/java/groovy/sql/SqlOrderByVisitor.java
index 58bf5bc..de6c0b2 100644
--- a/subprojects/groovy-sql/src/main/java/groovy/sql/SqlOrderByVisitor.java
+++ b/subprojects/groovy-sql/src/main/java/groovy/sql/SqlOrderByVisitor.java
@@ -27,7 +27,7 @@ import org.codehaus.groovy.ast.stmt.ReturnStatement;
  */
 public class SqlOrderByVisitor extends CodeVisitorSupport {
 
-    private StringBuffer buffer = new StringBuffer();
+    private final StringBuffer buffer = new StringBuffer();
 
     public String getOrderBy() {
         return buffer.toString();

http://git-wip-us.apache.org/repos/asf/groovy/blob/4c829ca3/subprojects/groovy-sql/src/main/java/groovy/sql/SqlWithParams.java
----------------------------------------------------------------------
diff --git a/subprojects/groovy-sql/src/main/java/groovy/sql/SqlWithParams.java 
b/subprojects/groovy-sql/src/main/java/groovy/sql/SqlWithParams.java
index 59ef3c1..ac81ef5 100644
--- a/subprojects/groovy-sql/src/main/java/groovy/sql/SqlWithParams.java
+++ b/subprojects/groovy-sql/src/main/java/groovy/sql/SqlWithParams.java
@@ -21,8 +21,8 @@ package groovy.sql;
 import java.util.List;
 
 public class SqlWithParams {
-    private String sql;
-    private List<Object> params;
+    private final String sql;
+    private final List<Object> params;
 
     public SqlWithParams(String sql, List<Object> params) {
         this.sql = sql;
@@ -36,4 +36,4 @@ public class SqlWithParams {
     public List<Object> getParams() {
         return params;
     }
-}
\ No newline at end of file
+}

http://git-wip-us.apache.org/repos/asf/groovy/blob/4c829ca3/subprojects/groovy-sql/src/main/java/org/codehaus/groovy/runtime/SqlGroovyMethods.java
----------------------------------------------------------------------
diff --git 
a/subprojects/groovy-sql/src/main/java/org/codehaus/groovy/runtime/SqlGroovyMethods.java
 
b/subprojects/groovy-sql/src/main/java/org/codehaus/groovy/runtime/SqlGroovyMethods.java
index 109dced..af426c7 100644
--- 
a/subprojects/groovy-sql/src/main/java/org/codehaus/groovy/runtime/SqlGroovyMethods.java
+++ 
b/subprojects/groovy-sql/src/main/java/org/codehaus/groovy/runtime/SqlGroovyMethods.java
@@ -98,7 +98,7 @@ public class SqlGroovyMethods {
     }
 
     private static class ResultSetMetaDataIterator implements 
Iterator<ResultSetMetaDataWrapper> {
-        private ResultSetMetaData target;
+        private final ResultSetMetaData target;
         private int index = 1;
 
         public ResultSetMetaDataIterator(ResultSetMetaData target) {
@@ -123,4 +123,4 @@ public class SqlGroovyMethods {
         }
     }
 
-}
\ No newline at end of file
+}

http://git-wip-us.apache.org/repos/asf/groovy/blob/4c829ca3/subprojects/groovy-xml/src/main/java/groovy/util/XmlParser.java
----------------------------------------------------------------------
diff --git a/subprojects/groovy-xml/src/main/java/groovy/util/XmlParser.java 
b/subprojects/groovy-xml/src/main/java/groovy/util/XmlParser.java
index 07860a3..c0447e7 100644
--- a/subprojects/groovy-xml/src/main/java/groovy/util/XmlParser.java
+++ b/subprojects/groovy-xml/src/main/java/groovy/util/XmlParser.java
@@ -72,9 +72,9 @@ import java.util.Map;
 public class XmlParser implements ContentHandler {
 
     private StringBuilder bodyText = new StringBuilder();
-    private List<Node> stack = new ArrayList<Node>();
+    private final List<Node> stack = new ArrayList<Node>();
     private Locator locator;
-    private XMLReader reader;
+    private final XMLReader reader;
     private Node parent;
 
     private boolean trimWhitespace = false;

http://git-wip-us.apache.org/repos/asf/groovy/blob/4c829ca3/subprojects/groovy-xml/src/main/java/groovy/xml/MarkupBuilderHelper.java
----------------------------------------------------------------------
diff --git 
a/subprojects/groovy-xml/src/main/java/groovy/xml/MarkupBuilderHelper.java 
b/subprojects/groovy-xml/src/main/java/groovy/xml/MarkupBuilderHelper.java
index 314b562..173f5f5 100644
--- a/subprojects/groovy-xml/src/main/java/groovy/xml/MarkupBuilderHelper.java
+++ b/subprojects/groovy-xml/src/main/java/groovy/xml/MarkupBuilderHelper.java
@@ -27,7 +27,7 @@ import java.util.Map;
  * @author Paul King
  */
 public class MarkupBuilderHelper {
-    private MarkupBuilder builder;
+    private final MarkupBuilder builder;
 
     /**
      * @param builder the builder to delegate to
@@ -139,4 +139,4 @@ public class MarkupBuilderHelper {
         builder.pi(args);
     }
 
-}
\ No newline at end of file
+}

http://git-wip-us.apache.org/repos/asf/groovy/blob/4c829ca3/subprojects/groovy-xml/src/main/java/groovy/xml/SAXBuilder.java
----------------------------------------------------------------------
diff --git a/subprojects/groovy-xml/src/main/java/groovy/xml/SAXBuilder.java 
b/subprojects/groovy-xml/src/main/java/groovy/xml/SAXBuilder.java
index 0dcb23d..a349d56 100644
--- a/subprojects/groovy-xml/src/main/java/groovy/xml/SAXBuilder.java
+++ b/subprojects/groovy-xml/src/main/java/groovy/xml/SAXBuilder.java
@@ -35,7 +35,7 @@ import org.xml.sax.helpers.AttributesImpl;
  */
 public class SAXBuilder extends BuilderSupport {
 
-    private ContentHandler handler;
+    private final ContentHandler handler;
     private Attributes emptyAttributes = new AttributesImpl();
 
     public SAXBuilder(ContentHandler handler) {

http://git-wip-us.apache.org/repos/asf/groovy/blob/4c829ca3/subprojects/groovy-xml/src/main/java/groovy/xml/dom/DOMCategory.java
----------------------------------------------------------------------
diff --git 
a/subprojects/groovy-xml/src/main/java/groovy/xml/dom/DOMCategory.java 
b/subprojects/groovy-xml/src/main/java/groovy/xml/dom/DOMCategory.java
index 12401bd..d2f0d6d 100644
--- a/subprojects/groovy-xml/src/main/java/groovy/xml/dom/DOMCategory.java
+++ b/subprojects/groovy-xml/src/main/java/groovy/xml/dom/DOMCategory.java
@@ -536,7 +536,7 @@ public class DOMCategory {
     }
 
     private static final class NodeListsHolder implements NodeList {
-        private List<NodeList> nodeLists;
+        private final List<NodeList> nodeLists;
 
         private NodeListsHolder(List<NodeList> nodeLists) {
             this.nodeLists = nodeLists;
@@ -567,7 +567,7 @@ public class DOMCategory {
     }
 
     private static final class NodesHolder implements NodeList {
-        private List<Node> nodes;
+        private final List<Node> nodes;
 
         private NodesHolder(List<Node> nodes) {
             this.nodes = nodes;

Reply via email to