Skip to content

Commit 17e0e6b

Browse files
committed
make the type constructor thread-safe
1 parent 7ba8a17 commit 17e0e6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/java/com/github/gumtreediff/tree/TypeSet.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ private TypeSet() {}
3535
* Build a type with the provided name. If the provided name is null or
3636
* the empty string, the empty type will be returned.
3737
*/
38-
public static Type type(String value) {
38+
public static synchronized Type type(String value) {
3939
return implementation.makeOrGetType(value);
4040
}
4141

0 commit comments

Comments
 (0)