jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1508499 - /jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/RepositoryImpl.java
Date Tue, 30 Jul 2013 15:45:53 GMT
Author: mduerig
Date: Tue Jul 30 15:45:52 2013
New Revision: 1508499

URL: http://svn.apache.org/r1508499
Log:
formatting

Modified:
    jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/RepositoryImpl.java

Modified: jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/RepositoryImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/RepositoryImpl.java?rev=1508499&r1=1508498&r2=1508499&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/RepositoryImpl.java
(original)
+++ jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/RepositoryImpl.java
Tue Jul 30 15:45:52 2013
@@ -196,10 +196,8 @@ public class RepositoryImpl implements J
             Long refreshInterval = getRefreshInterval(credentials);
             if (refreshInterval == null) {
                 refreshInterval = getLong(attributes, REFRESH_INTERVAL);
-            } else {
-                if (attributes.containsKey(REFRESH_INTERVAL)) {
-                    throw new RepositoryException("Duplicate attribute '" + REFRESH_INTERVAL
+ "'.");
-                }
+            } else if (attributes.containsKey(REFRESH_INTERVAL)) {
+                throw new RepositoryException("Duplicate attribute '" + REFRESH_INTERVAL
+ "'.");
             }
             if (refreshInterval == null) {
                 refreshInterval = DEFAULT_REFRESH_INTERVAL;



Mime
View raw message