File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
main/java/org/springframework/boot/bind
test/java/org/springframework/boot/bind Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -127,9 +127,8 @@ public T convert(String source) {
127
127
}
128
128
source = source .trim ();
129
129
for (T candidate : (Set <T >) EnumSet .allOf (this .enumType )) {
130
- RelaxedNames names = new RelaxedNames (
131
- candidate .name ().replace ('_' , '-' )
132
- .toLowerCase (Locale .ENGLISH ));
130
+ RelaxedNames names = new RelaxedNames (candidate .name ()
131
+ .replace ('_' , '-' ).toLowerCase (Locale .ENGLISH ));
133
132
for (String name : names ) {
134
133
if (name .equals (source )) {
135
134
return candidate ;
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2012-2016 the original author or authors.
2
+ * Copyright 2012-2018 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
31
31
*/
32
32
public class RelaxedConversionServiceTests {
33
33
34
- private RelaxedConversionService conversionService = new RelaxedConversionService (new DefaultConversionService ());
34
+ private RelaxedConversionService conversionService = new RelaxedConversionService (
35
+ new DefaultConversionService ());
35
36
36
37
@ Test
37
38
public void conversionServiceShouldAlwaysUseLocaleEnglish () {
38
39
Locale .setDefault (new Locale ("tr" ));
39
- TestEnum result = this .conversionService . convert ( "accept-case-insensitive-properties" ,
40
- TestEnum .class );
40
+ TestEnum result = this .conversionService
41
+ . convert ( "accept-case-insensitive-properties" , TestEnum .class );
41
42
assertThat (result .equals (TestEnum .ACCEPT_CASE_INSENSITIVE_PROPERTIES ));
42
43
}
43
44
You can’t perform that action at this time.
0 commit comments