jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thom...@apache.org
Subject svn commit: r1375028 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/kernel/CoreValueMapper.java
Date Mon, 20 Aug 2012 14:01:14 GMT
Author: thomasm
Date: Mon Aug 20 14:01:13 2012
New Revision: 1375028

URL: http://svn.apache.org/viewvc?rev=1375028&view=rev
Log:
OAK-260 Avoid the "Turkish Locale Problem"

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/kernel/CoreValueMapper.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/kernel/CoreValueMapper.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/kernel/CoreValueMapper.java?rev=1375028&r1=1375027&r2=1375028&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/kernel/CoreValueMapper.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/kernel/CoreValueMapper.java
Mon Aug 20 14:01:13 2012
@@ -19,6 +19,7 @@ package org.apache.jackrabbit.oak.kernel
 import java.util.ArrayList;
 import java.util.HashMap;
 import java.util.List;
+import java.util.Locale;
 import java.util.Map;
 
 import javax.jcr.PropertyType;
@@ -39,7 +40,7 @@ public class CoreValueMapper {
 
     static {
         for (int type = PropertyType.UNDEFINED; type <= PropertyType.DECIMAL; type++)
{
-            String hint = PropertyType.nameFromValue(type).substring(0, 3).toLowerCase();
+            String hint = PropertyType.nameFromValue(type).substring(0, 3).toLowerCase(Locale.ENGLISH);
             TYPE2HINT.put(type, hint);
             HINT2TYPE.put(hint, type);
         }



Mime
View raw message