6565
6666import java .text .ParseException ;
6767import java .text .SimpleDateFormat ;
68- import java .util .ArrayList ;
69- import java .util .Date ;
70- import java .util .Iterator ;
71- import java .util .List ;
72- import java .util .Map ;
68+ import java .util .*;
7369import java .util .Map .Entry ;
7470
7571/**
@@ -144,11 +140,11 @@ public class VPackDeserializers {
144140
145141 public static final VPackDeserializer <LogLevel > LOG_LEVEL = (parent , vpack , context ) -> LogLevel .fromLevel (vpack .getAsInt ());
146142
147- public static final VPackDeserializer <License > LICENSE = (parent , vpack , context ) -> License .valueOf (vpack .getAsString ().toUpperCase ());
143+ public static final VPackDeserializer <License > LICENSE = (parent , vpack , context ) -> License .valueOf (vpack .getAsString ().toUpperCase (Locale . ENGLISH ));
148144
149- public static final VPackDeserializer <Permissions > PERMISSIONS = (parent , vpack , context ) -> Permissions .valueOf (vpack .getAsString ().toUpperCase ());
145+ public static final VPackDeserializer <Permissions > PERMISSIONS = (parent , vpack , context ) -> Permissions .valueOf (vpack .getAsString ().toUpperCase (Locale . ENGLISH ));
150146
151- public static final VPackDeserializer <QueryExecutionState > QUERY_EXECUTION_STATE = (parent , vpack , context ) -> QueryExecutionState .valueOf (vpack .getAsString ().toUpperCase ().replaceAll (" " , "_" ));
147+ public static final VPackDeserializer <QueryExecutionState > QUERY_EXECUTION_STATE = (parent , vpack , context ) -> QueryExecutionState .valueOf (vpack .getAsString ().toUpperCase (Locale . ENGLISH ).replaceAll (" " , "_" ));
152148
153149 public static final VPackDeserializer <ReplicationFactor > REPLICATION_FACTOR = (parent , vpack , context ) -> {
154150 final ReplicationFactor replicationFactor = new ReplicationFactor ();
@@ -167,7 +163,7 @@ public class VPackDeserializers {
167163 };
168164
169165 public static final VPackDeserializer <ViewType > VIEW_TYPE = (parent , vpack , context ) -> "arangosearch" .equals (vpack .getAsString ()) ? ViewType .ARANGO_SEARCH
170- : ViewType .valueOf (vpack .getAsString ().toUpperCase ());
166+ : ViewType .valueOf (vpack .getAsString ().toUpperCase (Locale . ENGLISH ));
171167
172168 public static final VPackDeserializer <ArangoSearchProperties > ARANGO_SEARCH_PROPERTIES = (parent , vpack , context ) -> {
173169 final ArangoSearchProperties properties = new ArangoSearchProperties ();
@@ -216,7 +212,7 @@ public class VPackDeserializers {
216212 }
217213 final VPackSlice storeValues = value .get ("storeValues" );
218214 if (storeValues .isString ()) {
219- link .storeValues (StoreValuesType .valueOf (storeValues .getAsString ().toUpperCase ()));
215+ link .storeValues (StoreValuesType .valueOf (storeValues .getAsString ().toUpperCase (Locale . ENGLISH )));
220216 }
221217 final VPackSlice fields = value .get ("fields" );
222218 if (fields .isObject ()) {
@@ -290,7 +286,7 @@ protected static FieldLink deserializeField(final Entry<String, VPackSlice> fiel
290286 }
291287 final VPackSlice storeValues = value .get ("storeValues" );
292288 if (storeValues .isString ()) {
293- link .storeValues (StoreValuesType .valueOf (storeValues .getAsString ().toUpperCase ()));
289+ link .storeValues (StoreValuesType .valueOf (storeValues .getAsString ().toUpperCase (Locale . ENGLISH )));
294290 }
295291 final VPackSlice fields = value .get ("fields" );
296292 if (fields .isObject ()) {
@@ -313,7 +309,7 @@ protected static FieldLink deserializeField(final Entry<String, VPackSlice> fiel
313309 final VPackSlice type = vpack .get ("type" );
314310 if (type .isString ()) {
315311 final ConsolidationPolicy consolidate = ConsolidationPolicy
316- .of (ConsolidationType .valueOf (type .getAsString ().toUpperCase ()));
312+ .of (ConsolidationType .valueOf (type .getAsString ().toUpperCase (Locale . ENGLISH )));
317313 final VPackSlice threshold = vpack .get ("threshold" );
318314 if (threshold .isNumber ()) {
319315 consolidate .threshold (threshold .getAsDouble ());
0 commit comments