Skip to content

Commit

Permalink
make the type constructor thread-safe
Browse files Browse the repository at this point in the history
  • Loading branch information
pouryafard75 committed Feb 7, 2024
1 parent d42f62c commit 4556f14
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ private TypeSet() {}
* Build a type with the provided name. If the provided name is null or
* the empty string, the empty type will be returned.
*/
public static Type type(String value) {
public static synchronized Type type(String value) {
return implementation.makeOrGetType(value);
}

Expand Down

0 comments on commit 4556f14

Please sign in to comment.