Refactored android policy compliance

revert-dabc3590
mharindu 9 years ago
parent ade7895901
commit 571b4deb4e

@ -69,8 +69,8 @@ public class AndroidPolicyMonitoringService implements PolicyMonitoringService {
Gson gson = new Gson(); Gson gson = new Gson();
ComplianceFeature complianceFeature; ComplianceFeature complianceFeature;
for (int i = 0; i < jsonArray.size(); i++) { for (JsonElement element : jsonArray) {
complianceFeature = gson.fromJson(jsonArray.get(i), ComplianceFeature.class); complianceFeature = gson.fromJson(element, ComplianceFeature.class);
complianceFeatures.add(complianceFeature); complianceFeatures.add(complianceFeature);
} }

Loading…
Cancel
Save