resolved code issues

revert-dabc3590
Hasunie 7 years ago
parent eed8293ea5
commit 70f971cc26

@ -201,7 +201,6 @@ public class EnrollmentServiceImpl implements EnrollmentService {
TransformerFactory transformerFactory = TransformerFactory.newInstance(); TransformerFactory transformerFactory = TransformerFactory.newInstance();
Transformer transformer = transformerFactory.newTransformer(); Transformer transformer = transformerFactory.newTransformer();
transformer.transform(DOMSource, streamResult); transformer.transform(DOMSource, streamResult);
return stringWriter.toString(); return stringWriter.toString();
} }
@ -448,7 +447,6 @@ public class EnrollmentServiceImpl implements EnrollmentService {
} }
Device device = generateDevice(windowsDevice); Device device = generateDevice(windowsDevice);
WindowsAPIUtils.getDeviceManagementService().enrollDevice(device); WindowsAPIUtils.getDeviceManagementService().enrollDevice(device);
PolicyManagerService policyManagerService = WindowsAPIUtils.getPolicyManagerService(); PolicyManagerService policyManagerService = WindowsAPIUtils.getPolicyManagerService();
policyManagerService.getEffectivePolicy(new DeviceIdentifier(windowsDevice.getDeviceId(), device.getType())); policyManagerService.getEffectivePolicy(new DeviceIdentifier(windowsDevice.getDeviceId(), device.getType()));

Loading…
Cancel
Save