jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1394088 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/api/Type.java
Date Thu, 04 Oct 2012 14:28:51 GMT
Author: mduerig
Date: Thu Oct  4 14:28:51 2012
New Revision: 1394088

URL: http://svn.apache.org/viewvc?rev=1394088&view=rev
Log:
OAK-350: Unify PropertyState and CoreValue
- fix: Type.fromTag returns array types instead of base types

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/api/Type.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/api/Type.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/api/Type.java?rev=1394088&r1=1394087&r2=1394088&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/api/Type.java (original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/api/Type.java Thu
Oct  4 14:28:51 2012
@@ -124,17 +124,17 @@ public final class Type<T> {
     public static Type<?> fromTag(int tag, boolean array) {
         switch (tag) {
             case PropertyType.STRING: return array ? STRINGS : STRING;
-            case PropertyType.BINARY: return array ? BINARY : BINARIES;
-            case PropertyType.LONG: return array ? LONG : LONGS;
-            case PropertyType.DOUBLE: return array ? DOUBLE : DOUBLES;
-            case PropertyType.DATE: return array ? DATE: DATES;
-            case PropertyType.BOOLEAN: return array ? BOOLEAN: BOOLEANS;
-            case PropertyType.NAME: return array ? NAME : NAMES;
-            case PropertyType.PATH: return array ? PATH: PATHS;
-            case PropertyType.REFERENCE: return array ? REFERENCE : REFERENCES;
-            case PropertyType.WEAKREFERENCE: return array ? WEAKREFERENCE : WEAKREFERENCES;
-            case PropertyType.URI: return array ? URI: URIS;
-            case PropertyType.DECIMAL: return array ? DECIMAL : DECIMALS;
+            case PropertyType.BINARY: return array ? BINARIES : BINARY;
+            case PropertyType.LONG: return array ? LONGS : LONG;
+            case PropertyType.DOUBLE: return array ? DOUBLES : DOUBLE;
+            case PropertyType.DATE: return array ? DATES: DATE;
+            case PropertyType.BOOLEAN: return array ? BOOLEANS: BOOLEAN;
+            case PropertyType.NAME: return array ? NAMES : NAME;
+            case PropertyType.PATH: return array ? PATHS: PATH;
+            case PropertyType.REFERENCE: return array ? REFERENCES : REFERENCE;
+            case PropertyType.WEAKREFERENCE: return array ? WEAKREFERENCES : WEAKREFERENCE;
+            case PropertyType.URI: return array ? URIS: URI;
+            case PropertyType.DECIMAL: return array ? DECIMALS : DECIMAL;
             default: throw new IllegalArgumentException("Invalid type tag: " + tag);
         }
     }



Mime
View raw message