build fix for mid checkin change. doh!

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4703 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Ariel Backenroth
2006-12-31 08:56:16 +00:00
parent a25d85ee83
commit ae1c4f0a39

View File

@@ -148,18 +148,18 @@ public class XMLUtil
public static DocumentBuilder getDocumentBuilder(final boolean namespaceAware, public static DocumentBuilder getDocumentBuilder(final boolean namespaceAware,
final boolean validating) final boolean validating)
{
try try
{ {
final DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); final DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
dbf.setNamespaceAware(namespaceAware); dbf.setNamespaceAware(namespaceAware);
dbf.setValidating(validating); dbf.setValidating(validating);
XMLUtil.documentBuilder = dbf.newDocumentBuilder(); return dbf.newDocumentBuilder();
} }
catch (ParserConfigurationException pce) catch (ParserConfigurationException pce)
{ {
LOGGER.error(pce); LOGGER.error(pce);
return null;
} }
} }
return XMLUtil.documentBuilder;
}
} }