File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
spring-oxm/src/main/java/org/springframework/oxm/support Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2014 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.
@@ -130,12 +130,13 @@ public boolean isProcessExternalEntities() {
130
130
*/
131
131
protected Document buildDocument () {
132
132
try {
133
+ DocumentBuilder documentBuilder ;
133
134
synchronized (this .documentBuilderFactoryMonitor ) {
134
135
if (this .documentBuilderFactory == null ) {
135
136
this .documentBuilderFactory = createDocumentBuilderFactory ();
136
137
}
138
+ documentBuilder = createDocumentBuilder (this .documentBuilderFactory );
137
139
}
138
- DocumentBuilder documentBuilder = createDocumentBuilder (this .documentBuilderFactory );
139
140
return documentBuilder .newDocument ();
140
141
}
141
142
catch (ParserConfigurationException ex ) {
You can’t perform that action at this time.
0 commit comments