@@ -42,7 +42,9 @@ protected TestResultBundle(CheckCLDR.Options cldrOptions) {
42
42
options = cldrOptions ;
43
43
pathCache = new ConcurrentHashMap <>();
44
44
file = getFactory ().make (options .getLocale ().getBaseName (), true );
45
- cc .setCldrFileToCheck (file , options , possibleProblems );
45
+ synchronized (cc ) {
46
+ cc .setCldrFileToCheck (file , options , possibleProblems );
47
+ }
46
48
}
47
49
48
50
/**
@@ -68,12 +70,14 @@ public void check(String path, List<CheckStatus> result, String value) {
68
70
key ,
69
71
(Pair <String , String > k ) -> {
70
72
List <CheckStatus > l = new ArrayList <CheckStatus >();
71
- cc .check (
72
- k .getFirst (),
73
- file .getFullXPath (k .getFirst ()),
74
- k .getSecond (),
75
- options ,
76
- l );
73
+ synchronized (cc ) {
74
+ cc .check (
75
+ k .getFirst (),
76
+ file .getFullXPath (k .getFirst ()),
77
+ k .getSecond (),
78
+ options ,
79
+ l );
80
+ }
77
81
return l ;
78
82
});
79
83
if (cachedResult != null ) {
@@ -82,7 +86,9 @@ public void check(String path, List<CheckStatus> result, String value) {
82
86
}
83
87
84
88
public void getExamples (String path , String value , List <CheckStatus > result ) {
85
- cc .getExamples (path , file .getFullXPath (path ), value , options , result );
89
+ synchronized (cc ) {
90
+ cc .getExamples (path , file .getFullXPath (path ), value , options , result );
91
+ }
86
92
}
87
93
88
94
public List <CheckStatus > getPossibleProblems () {
0 commit comments