Fixing regression issues

4.x.x
Rasika Perera 7 years ago
parent ab352015b7
commit 7673dca496

@ -83,7 +83,7 @@ public class PlatformConfigurationManagementServiceImpl
try { try {
resource = ConfigurationManagerUtil.getRegistryResource(resourcePath); resource = ConfigurationManagerUtil.getRegistryResource(resourcePath);
if(resource != null){ if(resource != null){
XMLInputFactory factory = XMLInputFactory.newFactory(); XMLInputFactory factory = XMLInputFactory.newInstance();
factory.setProperty(XMLInputFactory.IS_SUPPORTING_EXTERNAL_ENTITIES, false); factory.setProperty(XMLInputFactory.IS_SUPPORTING_EXTERNAL_ENTITIES, false);
factory.setProperty(XMLInputFactory.SUPPORT_DTD, false); factory.setProperty(XMLInputFactory.SUPPORT_DTD, false);
XMLStreamReader reader = factory.createXMLStreamReader( XMLStreamReader reader = factory.createXMLStreamReader(

@ -238,7 +238,7 @@ public class DeviceTypeManager implements DeviceManager {
try { try {
resource = DeviceTypeUtils.getRegistryResource(deviceType); resource = DeviceTypeUtils.getRegistryResource(deviceType);
if (resource != null) { if (resource != null) {
XMLInputFactory factory = XMLInputFactory.newFactory(); XMLInputFactory factory = XMLInputFactory.newInstance();
factory.setProperty(XMLInputFactory.IS_SUPPORTING_EXTERNAL_ENTITIES, false); factory.setProperty(XMLInputFactory.IS_SUPPORTING_EXTERNAL_ENTITIES, false);
factory.setProperty(XMLInputFactory.SUPPORT_DTD, false); factory.setProperty(XMLInputFactory.SUPPORT_DTD, false);
XMLStreamReader reader = factory.createXMLStreamReader( XMLStreamReader reader = factory.createXMLStreamReader(

Loading…
Cancel
Save