Merge pull request #10 from milanperera/master

Refactored policy compliance
revert-dabc3590
Dilshan Edirisuriya 9 years ago
commit 248f2f8a80

@ -52,10 +52,10 @@ public class AndroidPolicyMonitoringService implements PolicyMonitoringService {
if (log.isDebugEnabled()) { if (log.isDebugEnabled()) {
log.debug("Checking policy compliance status of device '" + deviceIdentifier.getId() + "'"); log.debug("Checking policy compliance status of device '" + deviceIdentifier.getId() + "'");
} }
ComplianceData complianceData = new ComplianceData();
if (compliancePayload == null || policy == null) { if (compliancePayload == null || policy == null) {
return null; return complianceData;
} }
ComplianceData complianceData = new ComplianceData();
List<ComplianceFeature> complianceFeatures = new ArrayList<ComplianceFeature>(); List<ComplianceFeature> complianceFeatures = new ArrayList<ComplianceFeature>();
// Parsing json string to get compliance features. // Parsing json string to get compliance features.

Loading…
Cancel
Save