Code inspector gets confused by Database Savepoints

Issue #1136 resolved
Chuck Liddell created an issue

The code inspector is grumping about data types around Savepoints, but the syntax is correct and matches Apex documentation:

https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/langCon_apex_transaction_control.htm

Comments (2)

  1. Scott Wells repo owner

    Chuck, scrubbing some older issues around false positives from IC2's code inspections. I'm unable to reproduce this with:

    public with sharing class Issue1136
    {
        public static void testSavepointResolution()
        {
            Savepoint sp = Database.setSavepoint();
            Database.rollback(sp);
        }
    }
    

    Does it still reproduce for you?

  2. Log in to comment