Updates to*Case() to use Locale.ROOT

This commit is contained in:
spencergibb
2024-10-18 10:53:24 -04:00
parent 8f9c17f19a
commit d120eb0731
83 changed files with 262 additions and 178 deletions

View File

@@ -1,5 +1,6 @@
package example;
import java.util.Locale;
import java.util.function.Function;
import org.springframework.boot.SpringBootConfiguration;
@@ -25,7 +26,7 @@ public class FunctionConfiguration implements ApplicationContextInitializer<Gene
@Override
public void initialize(GenericApplicationContext context) {
Function<String, String> function = (str) -> str + str.toUpperCase();
Function<String, String> function = (str) -> str + str.toUpperCase(Locale.ROOT);
context.registerBean("uppercase", FunctionRegistration.class,
() -> new FunctionRegistration<>(function).type(FunctionTypeUtils.functionType(String.class, String.class)));