Uploaded image for project: 'JBoss Transaction Manager'
  1. JBoss Transaction Manager
  2. JBTM-3580

Replace getParameterTypes().length with getParameterCount()

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Minor Minor
    • 5.12.6.Final
    • None
    • Common, JTA
    • None

      getParameterTypes().length is inefficient because it creates an array clone, while getParameterCount() directly returns the length.

      ArjunaJTA/jdbc/classes/com/arjuna/ats/internal/jdbc/drivers/XADataSourceReflectionWrapper.java:            if(method.getName().equals(name) && method.getParameterTypes().length == 1) {
      common/classes/com/arjuna/common/internal/util/ClassloadingUtility.java:                if(constructor.getParameterTypes().length == 1 &&
      

            Unassigned Unassigned
            clara0 Clara Fang (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: