jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r777029 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/RepositoryFactoryImpl.java
Date Thu, 21 May 2009 09:38:14 GMT
Author: jukka
Date: Thu May 21 09:38:14 2009
New Revision: 777029

URL: http://svn.apache.org/viewvc?rev=777029&view=rev
Log:
JCR-2119: Method to create default RepositoryConfig from just the repository directory


No more IOExceptions from TransientRepository

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

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/RepositoryFactoryImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/RepositoryFactoryImpl.java?rev=777029&r1=777028&r2=777029&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/RepositoryFactoryImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/RepositoryFactoryImpl.java
Thu May 21 09:38:14 2009
@@ -82,17 +82,13 @@
                                                        String home)
             throws RepositoryException {
         JackrabbitRepository repo = (JackrabbitRepository) REPOSITORY_INSTANCES.get(home);
-        try {
-            if (repo == null) {
-                if (home == null) {
-                    repo = new TransientRepository();
-                } else {
-                    repo = new TransientRepository(conf, home);
-                }
-                REPOSITORY_INSTANCES.put(home, repo);
+        if (repo == null) {
+            if (home == null) {
+                repo = new TransientRepository();
+            } else {
+                repo = new TransientRepository(conf, home);
             }
-        } catch (IOException e) {
-            throw new RepositoryException(e);
+            REPOSITORY_INSTANCES.put(home, repo);
         }
         return repo;
     }



Mime
View raw message