Replace uses of getCanonicalName() with getName() in APEX