Change getCanonicalName() to getName() in api

No match.