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 11/*
2- * Copyright 2002-2014 the original author or authors.
2+ * Copyright 2002-2016 the original author or authors.
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
@@ -130,12 +130,13 @@ public boolean isProcessExternalEntities() {
130130 */
131131 protected Document buildDocument () {
132132 try {
133+ DocumentBuilder documentBuilder ;
133134 synchronized (this .documentBuilderFactoryMonitor ) {
134135 if (this .documentBuilderFactory == null ) {
135136 this .documentBuilderFactory = createDocumentBuilderFactory ();
136137 }
138+ documentBuilder = createDocumentBuilder (this .documentBuilderFactory );
137139 }
138- DocumentBuilder documentBuilder = createDocumentBuilder (this .documentBuilderFactory );
139140 return documentBuilder .newDocument ();
140141 }
141142 catch (ParserConfigurationException ex ) {
You can’t perform that action at this time.
0 commit comments