Uploaded image for project: 'Policy Framework'
  1. Policy Framework
  2. POLICY-1646

Replace uses of getCanonicalName() with getName()

XMLWordPrintable

      The use of class.getCanonicalName() instead of class.getName() has taken root within policy code. In most cases, the two have the same value, however, getName() is typically the "correct" method to use, semantically (and is much shorter!).  Existing code should be modified to use getName(), instead, except perhaps where the name is being logged, though getName() is typically fine there, too.

            jrh3 jrh3
            jrh3 jrh3
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: