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

[patch] move instanceof check up above where casts occur

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 10.7.1.1
    • 10.8.1.2
    • Network Client
    • None
    • Low

    Description

      code does an instanceof check on Diagnosable much after multiple casts to Diagnosable occurs above it.

      Move the instanceof check up before the first cast, so that it does some good.

      Attachments

        1. move_instanceof_check.diff
          6 kB
          Dave Brosius
        2. unnecessary_casts.diff
          3 kB
          Knut Anders Hatlen

        Activity

          People

            dbrosius@apache.org Dave Brosius
            dbrosius@apache.org Dave Brosius
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified