Skip to content

Commit

Permalink
Make parse function synchronized
Browse files Browse the repository at this point in the history
  • Loading branch information
GordianDziwis committed Feb 13, 2019
1 parent 20a0487 commit 1936665
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -96,7 +96,7 @@ public String unparse(Object value) {
* @throws DatatypeFormatException if the lexical form is not legal
*/
@Override
public Node parse(String lexicalForm) throws DatatypeFormatException {
public synchronized Node parse(String lexicalForm) throws DatatypeFormatException {
Document result;
try {
result = documentBuilder.parse(new InputSource(new StringReader(lexicalForm)));
Expand Down

0 comments on commit 1936665

Please sign in to comment.