X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=src%2Fcom%2Fgoogle%2Fgson%2FFieldNamingPolicy.java;h=6b4c72ca7bd281feec7242380639011effc73fed;hb=444e37a3fea5c213653da2f9bcda906d1fd7a97d;hp=21863f9c57f561288dc6afc7e7cf81b677676ac6;hpb=f3ad474012285f75be4d43bf3a711b430e483673;p=unical.git diff --git a/src/com/google/gson/FieldNamingPolicy.java b/src/com/google/gson/FieldNamingPolicy.java index 21863f9..6b4c72c 100644 --- a/src/com/google/gson/FieldNamingPolicy.java +++ b/src/com/google/gson/FieldNamingPolicy.java @@ -17,6 +17,7 @@ package com.google.gson; import java.lang.reflect.Field; +import java.util.Locale; /** * An enumeration that defines a few standard naming conventions for JSON field names. @@ -88,7 +89,7 @@ public enum FieldNamingPolicy implements FieldNamingStrategy { */ LOWER_CASE_WITH_UNDERSCORES() { public String translateName(Field f) { - return separateCamelCase(f.getName(), "_").toLowerCase(); + return separateCamelCase(f.getName(), "_").toLowerCase(Locale.ENGLISH); } }, @@ -111,7 +112,7 @@ public enum FieldNamingPolicy implements FieldNamingStrategy { */ LOWER_CASE_WITH_DASHES() { public String translateName(Field f) { - return separateCamelCase(f.getName(), "-").toLowerCase(); + return separateCamelCase(f.getName(), "-").toLowerCase(Locale.ENGLISH); } };