jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r1406226 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/memory/PropertyStates.java
Date Tue, 06 Nov 2012 17:13:12 GMT
Author: angela
Date: Tue Nov  6 17:13:12 2012
New Revision: 1406226

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

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

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/memory/PropertyStates.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/memory/PropertyStates.java?rev=1406226&r1=1406225&r2=1406226&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/memory/PropertyStates.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/memory/PropertyStates.java
Tue Nov  6 17:13:12 2012
@@ -252,29 +252,21 @@ public final class PropertyStates {
     public static <T> PropertyState createProperty(String name, T value) {
         if (value instanceof String) {
             return StringPropertyState.stringProperty(name, (String) value);
-        }
-        else if (value instanceof Blob) {
-            return  BinaryPropertyState.binaryProperty(name, (Blob) value);
-        }
-        else if (value instanceof byte[]) {
+        } else if (value instanceof Blob) {
+            return BinaryPropertyState.binaryProperty(name, (Blob) value);
+        } else if (value instanceof byte[]) {
             return BinaryPropertyState.binaryProperty(name, (byte[]) value);
-        }
-        else if (value instanceof Long) {
+        } else if (value instanceof Long) {
             return LongPropertyState.createLongProperty(name, (Long) value);
-        }
-        else if (value instanceof Integer) {
+        } else if (value instanceof Integer) {
             return LongPropertyState.createLongProperty(name, (long) (Integer) value);
-        }
-        else if (value instanceof Double) {
+        } else if (value instanceof Double) {
             return DoublePropertyState.doubleProperty(name, (Double) value);
-        }
-        else if (value instanceof Boolean) {
+        } else if (value instanceof Boolean) {
             return BooleanPropertyState.booleanProperty(name, (Boolean) value);
-        }
-        else if (value instanceof BigDecimal) {
+        } else if (value instanceof BigDecimal) {
             return DecimalPropertyState.decimalProperty(name, (BigDecimal) value);
-        }
-        else {
+        } else {
             throw new IllegalArgumentException("Can't infer type of value of class '" + value.getClass()
+ '\'');
         }
     }



Mime
View raw message