File tree 2 files changed +5
-3
lines changed
spring-kafka/src/main/java/org/springframework/kafka
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 30
30
import java .util .HashMap ;
31
31
import java .util .HashSet ;
32
32
import java .util .List ;
33
+ import java .util .Locale ;
33
34
import java .util .Map ;
34
35
import java .util .Properties ;
35
36
import java .util .Set ;
@@ -1014,7 +1015,7 @@ else if (resolvedValue instanceof Integer intgr) {
1014
1015
private TopicPartitionOffset .SeekPosition resloveTopicPartitionOffsetSeekPosition (@ Nullable Object seekPosition ) {
1015
1016
TopicPartitionOffset .SeekPosition resloveTpoSp = null ;
1016
1017
if (seekPosition instanceof String seekPositionName ) {
1017
- String capitalLetterSeekPositionName = seekPositionName .trim ().toUpperCase ();
1018
+ String capitalLetterSeekPositionName = seekPositionName .trim ().toUpperCase (Locale . ROOT );
1018
1019
if (SeekPosition .BEGINNING .name ().equals (capitalLetterSeekPositionName )) {
1019
1020
resloveTpoSp = SeekPosition .BEGINNING ;
1020
1021
}
Original file line number Diff line number Diff line change 24
24
import java .util .Collections ;
25
25
import java .util .HashMap ;
26
26
import java .util .List ;
27
+ import java .util .Locale ;
27
28
import java .util .Map ;
28
29
import java .util .Set ;
29
30
import java .util .stream .Collectors ;
@@ -352,13 +353,13 @@ protected SimplePatternBasedHeaderMatcher(String pattern) {
352
353
353
354
SimplePatternBasedHeaderMatcher (String pattern , boolean negate ) {
354
355
Assert .notNull (pattern , "Pattern must no be null" );
355
- this .pattern = pattern .toLowerCase ();
356
+ this .pattern = pattern .toLowerCase (Locale . ROOT );
356
357
this .negate = negate ;
357
358
}
358
359
359
360
@ Override
360
361
public boolean matchHeader (String headerName ) {
361
- String header = headerName .toLowerCase ();
362
+ String header = headerName .toLowerCase (Locale . ROOT );
362
363
if (PatternMatchUtils .simpleMatch (this .pattern , header )) {
363
364
LOGGER .debug (() ->
364
365
MessageFormat .format (
You can’t perform that action at this time.
0 commit comments