I had run a security review for my apex code. It returned a number of FLS update error in the result. I have changed/implemented code (see below the code snippet) but the error is still there. Please give me your suggestion if I am following a wrong path.
This is the screenshot of the security review
and the code I have implemented is like this
if (Schema.sObjectType.Object__c.fields.Id.isAccessible() && sysPol != null) obj.id = sysPol; if(Object__c.sObjectType.getDescribe().isUpdateable()) update obj;