Author: vgritsenko Date: Wed Mar 28 19:18:37 2007 New Revision: 523535 URL: http://svn.apache.org/viewvc?view=rev&rev=523535 Log: remove unnecessary try/catch
Modified: xml/xindice/trunk/java/src/org/apache/xindice/client/xmldb/embed/CollectionImpl.java xml/xindice/trunk/java/src/org/apache/xindice/core/Collection.java Modified: xml/xindice/trunk/java/src/org/apache/xindice/client/xmldb/embed/CollectionImpl.java URL: http://svn.apache.org/viewvc/xml/xindice/trunk/java/src/org/apache/xindice/client/xmldb/embed/CollectionImpl.java?view=diff&rev=523535&r1=523534&r2=523535 ============================================================================== --- xml/xindice/trunk/java/src/org/apache/xindice/client/xmldb/embed/CollectionImpl.java (original) +++ xml/xindice/trunk/java/src/org/apache/xindice/client/xmldb/embed/CollectionImpl.java Wed Mar 28 19:18:37 2007 @@ -281,13 +281,9 @@ * method has been called on the <code>Collection</code><br /> */ public String createId() throws XMLDBException { - + checkOpen(); - try { - return col.createNewOID().toString(); - } catch (Exception e) { - throw FaultCodes.createXMLDBException(e); - } + return col.createNewOID().toString(); } /** Modified: xml/xindice/trunk/java/src/org/apache/xindice/core/Collection.java URL: http://svn.apache.org/viewvc/xml/xindice/trunk/java/src/org/apache/xindice/core/Collection.java?view=diff&rev=523535&r1=523534&r2=523535 ============================================================================== --- xml/xindice/trunk/java/src/org/apache/xindice/core/Collection.java (original) +++ xml/xindice/trunk/java/src/org/apache/xindice/core/Collection.java Wed Mar 28 19:18:37 2007 @@ -206,7 +206,7 @@ private int collectionId; private File collectionRoot; private boolean compressed; - private long documentId = System.currentTimeMillis(); + private long documentId; private DocumentCache documentCache; private Filer filer; private IndexManager indexManager; @@ -220,6 +220,7 @@ protected Collection() { + documentId = System.currentTimeMillis(); } /**