File tree Expand file tree Collapse file tree
main/java/com/diffplug/spotless/java
tableTestFormatter/java/com/diffplug/spotless/glue/java Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818import java .io .Serial ;
1919import java .io .Serializable ;
2020import java .lang .reflect .Constructor ;
21+ import java .util .Locale ;
2122import java .util .Objects ;
2223
2324import com .diffplug .spotless .FormatterFunc ;
@@ -97,7 +98,7 @@ private State equalityState() {
9798
9899 public static String validateIndentStyle (String indentStyle ) {
99100 Objects .requireNonNull (indentStyle , "indentStyle" );
100- String lower = indentStyle .toLowerCase ();
101+ String lower = indentStyle .toLowerCase (Locale . ROOT );
101102 if (!lower .equals ("space" ) && !lower .equals ("tab" )) {
102103 throw new IllegalArgumentException ("indentStyle must be 'space' or 'tab', got: " + indentStyle );
103104 }
Original file line number Diff line number Diff line change 1616package com .diffplug .spotless .glue .java ;
1717
1818import java .io .File ;
19+ import java .util .Locale ;
1920
2021import org .tabletest .formatter .config .Config ;
2122import org .tabletest .formatter .config .EditorConfigProvider ;
@@ -57,7 +58,7 @@ public TableTestFormatterFunc() {
5758 * @param indentSize indent size (>= 0)
5859 */
5960 public TableTestFormatterFunc (String indentStyle , int indentSize ) {
60- this .sourceFallbackConfig = new Config (IndentStyle .valueOf (indentStyle .toUpperCase ()), indentSize );
61+ this .sourceFallbackConfig = new Config (IndentStyle .valueOf (indentStyle .toUpperCase (Locale . ROOT )), indentSize );
6162 }
6263
6364 @ Override
You can’t perform that action at this time.
0 commit comments