jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r1437998 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/memory/MemoryPropertyBuilder.java
Date Thu, 24 Jan 2013 13:53:41 GMT
Author: angela
Date: Thu Jan 24 13:53:40 2013
New Revision: 1437998

URL: http://svn.apache.org/viewvc?rev=1437998&view=rev
Log:
fix indention

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/memory/MemoryPropertyBuilder.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/memory/MemoryPropertyBuilder.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/memory/MemoryPropertyBuilder.java?rev=1437998&r1=1437997&r2=1437998&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/memory/MemoryPropertyBuilder.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/memory/MemoryPropertyBuilder.java
Thu Jan 24 13:53:40 2013
@@ -171,8 +171,7 @@ public class MemoryPropertyBuilder<T> im
 
         if (values.isEmpty()) {
             return EmptyPropertyState.emptyProperty(name, Type.fromTag(type.tag(), true));
-        }
-        else if (isArray()) {
+        } else if (isArray()) {
             switch (type.tag()) {
                 case PropertyType.STRING:
                     return MultiStringPropertyState.stringProperty(name, (Iterable<String>)
values);
@@ -191,14 +190,13 @@ public class MemoryPropertyBuilder<T> im
                 default:
                     return new MultiGenericPropertyState(name, (Iterable<String>) values,
Type.fromTag(type.tag(), true));
             }
-        }
-        else {
+        } else {
             T value = values.get(0);
             switch (type.tag()) {
                 case PropertyType.STRING:
                     return StringPropertyState.stringProperty(name, (String) value);
                 case PropertyType.BINARY:
-                    return  BinaryPropertyState.binaryProperty(name, (Blob) value);
+                    return BinaryPropertyState.binaryProperty(name, (Blob) value);
                 case PropertyType.LONG:
                     return LongPropertyState.createLongProperty(name, (Long) value);
                 case PropertyType.DOUBLE:
@@ -225,17 +223,14 @@ public class MemoryPropertyBuilder<T> im
                 isArray = true;
                 if (type == Type.DATE) {
                     setValues((Iterable<T>) property.getValue(Type.STRINGS));
-                }
-                else {
+                } else {
                     setValues((Iterable<T>) property.getValue(type.getArrayType()));
                 }
-            }
-            else {
+            } else {
                 isArray = false;
                 if (type == Type.DATE) {
                     setValue((T) property.getValue(Type.STRING));
-                }
-                else {
+                } else {
                     setValue(property.getValue(type));
                 }
             }



Mime
View raw message