jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r1032621 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/version/VersionIteratorImpl.java
Date Mon, 08 Nov 2010 16:17:17 GMT
Author: jukka
Date: Mon Nov  8 16:17:16 2010
New Revision: 1032621

URL: http://svn.apache.org/viewvc?rev=1032621&view=rev
Log:
JCR-2655: initVersions crashes with NPE

Make an unmodified variable final.

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/version/VersionIteratorImpl.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/version/VersionIteratorImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/version/VersionIteratorImpl.java?rev=1032621&r1=1032620&r2=1032621&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/version/VersionIteratorImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/version/VersionIteratorImpl.java
Mon Nov  8 16:17:16 2010
@@ -43,7 +43,7 @@ class VersionIteratorImpl implements Ver
     /**
      * the id's of the versions to return
      */
-    private LinkedList<NodeId> versions = new LinkedList<NodeId>();
+    private final LinkedList<NodeId> versions = new LinkedList<NodeId>();
 
     /**
      * the current position



Mime
View raw message