File tree 1 file changed +4
-6
lines changed
spring-expression/src/main/java/org/springframework/expression/spel/support
1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2013 the original author or authors.
2
+ * Copyright 2002-2016 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.
36
36
*/
37
37
public class StandardTypeConverter implements TypeConverter {
38
38
39
- private static ConversionService defaultConversionService ;
39
+ private static volatile ConversionService defaultConversionService ;
40
40
41
41
private final ConversionService conversionService ;
42
42
@@ -45,10 +45,8 @@ public class StandardTypeConverter implements TypeConverter {
45
45
* Create a StandardTypeConverter for the default ConversionService.
46
46
*/
47
47
public StandardTypeConverter () {
48
- synchronized (this ) {
49
- if (defaultConversionService == null ) {
50
- defaultConversionService = new DefaultConversionService ();
51
- }
48
+ if (defaultConversionService == null ) {
49
+ defaultConversionService = new DefaultConversionService ();
52
50
}
53
51
this .conversionService = defaultConversionService ;
54
52
}
You can’t perform that action at this time.
0 commit comments