jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thom...@apache.org
Subject svn commit: r1164097 - /jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/index/BTree.java
Date Thu, 01 Sep 2011 14:52:57 GMT
Author: thomasm
Date: Thu Sep  1 14:52:57 2011
New Revision: 1164097

URL: http://svn.apache.org/viewvc?rev=1164097&view=rev
Log:
Index mechanism (WIP)

Modified:
    jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/index/BTree.java

Modified: jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/index/BTree.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/index/BTree.java?rev=1164097&r1=1164096&r2=1164097&view=diff
==============================================================================
--- jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/index/BTree.java
(original)
+++ jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/index/BTree.java
Thu Sep  1 14:52:57 2011
@@ -33,8 +33,6 @@ public class BTree {
     private boolean unique = true;
     private int minSize = DEFAULT_MIN_SIZE;
 
-    private UnsupportedOperationException uniqueKeyViolation = new UnsupportedOperationException("Unique
key violation");
-
     public BTree(Indexer indexer, String name, boolean unique) {
         this.indexer = indexer;
         this.name = name;
@@ -268,7 +266,7 @@ public class BTree {
                     pos = -pos - 1;
                 } else {
                     if (unique) {
-                        throw uniqueKeyViolation;
+                        throw new UnsupportedOperationException("Unique key violation");
                     }
                 }
                 page.insert(pos, key, value);



Mime
View raw message