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

Replace getParameterTypes().length with getParameterCount()

    XMLWordPrintable

Details

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

    Description

      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 &&
      

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: