Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-6262

Simplify message-generating methods using varargs

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 10.11.1.1
    • Fix Version/s: 10.11.1.1
    • Component/s: Miscellaneous
    • Labels:
      None

      Description

      I've found that many methods that generate messages could be collapsed into a single method using varargs. Right now, many of them exist in multiple variants, typically for zero up to three or four message arguments.

      Examples:
      Monitor.logTextMessage()
      MessageService.getTextMessage()
      Constructors in SqlException and SqlWarning

        Attachments

        1. derby-6262-05-a.diff
          6 kB
          Knut Anders Hatlen
        2. derby-6262-04-a.diff
          14 kB
          Knut Anders Hatlen
        3. derby-6262-03-a.diff
          7 kB
          Knut Anders Hatlen
        4. derby-6262-02-a.diff
          24 kB
          Knut Anders Hatlen
        5. derby-6262-01-a.diff
          20 kB
          Knut Anders Hatlen

          Issue Links

            Activity

              People

              • Assignee:
                knutanders Knut Anders Hatlen
                Reporter:
                knutanders Knut Anders Hatlen
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: