Updates to*Case() to use Locale.ROOT
This commit is contained in:
committed by
Oleg Zhurakousky
parent
b65577d515
commit
900d03f816
@@ -1,5 +1,6 @@
|
||||
package com.example;
|
||||
|
||||
import java.util.Locale;
|
||||
import java.util.function.Function;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
@@ -24,7 +25,7 @@ public class LambdaApplication
|
||||
if (value.equals("error")) {
|
||||
throw new IllegalArgumentException("Intentional");
|
||||
}
|
||||
return value.toUpperCase();
|
||||
return value.toUpperCase(Locale.ROOT);
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user