Fixed formating issues

revert-dabc3590
mharindu 9 years ago
parent 4790de94ef
commit eab9aa93d0

@ -47,19 +47,19 @@ public class AndroidPolicyMonitoringService implements PolicyMonitoringService {
}
@Override
public ComplianceData checkPolicyCompliance(DeviceIdentifier deviceIdentifier, Policy policy, Object o)
throws PolicyComplianceException {
public ComplianceData checkPolicyCompliance(DeviceIdentifier deviceIdentifier, Policy policy,
Object compliancePayload) throws PolicyComplianceException {
if (log.isDebugEnabled()) {
log.debug("Checking policy compliance status of device '" + deviceIdentifier.getId() + "'");
}
if (o == null || policy == null) {
if (compliancePayload == null || policy == null) {
return null;
}
ComplianceData complianceData = new ComplianceData();
List<ComplianceFeature> complianceFeatures = new ArrayList<ComplianceFeature>();
// Parsing json string to get compliance features.
JsonElement jsonElement = new JsonParser().parse((String) o);
JsonElement jsonElement = new JsonParser().parse((String) compliancePayload);
JsonArray jsonArray = jsonElement.getAsJsonArray();
Gson gson = new Gson();
ComplianceFeature complianceFeature;

Loading…
Cancel
Save