import com.google.common.collect.Range;
import java.lang.reflect.Array;
+import java.util.Locale;
import java.util.Set;
import java.util.function.Function;
import org.opendaylight.yangtools.yang.binding.CodeHelpers;
protected final String generateRangeCheckerImplementation(final String checkerName,
final RangeConstraint<?> constraint, final Function<Class<?>, String> classImporter) {
final Set<? extends Range<? extends Number>> constraints = constraint.getAllowedRanges().asRanges();
- final String fieldName = checkerName.toUpperCase() + "_RANGES";
+ final String fieldName = checkerName.toUpperCase(Locale.ENGLISH) + "_RANGES";
final StringBuilder sb = new StringBuilder();
// Field to hold the Range objects in an array
import com.google.common.collect.Iterables
import java.util.Collection
import java.util.List
+import java.util.Locale
import java.util.Map.Entry
import java.util.StringTokenizer
import java.util.regex.Pattern
«ENDIF»
«ENDIF»
- «val fieldUpperCase = property.fieldName.toString.toUpperCase()»
+ «val fieldUpperCase = property.fieldName.toString.toUpperCase(Locale.ENGLISH)»
«FOR currentConstant : type.getConstantDefinitions»
«IF currentConstant.getName.startsWith(TypeConstants.PATTERN_CONSTANT_NAME)
&& fieldUpperCase.equals(currentConstant.getName.substring(TypeConstants.PATTERN_CONSTANT_NAME.length))»