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

Remove unnecessary field rwsOK in DirStorageFactory4

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 10.9.1.0
    • 10.9.1.0
    • Store
    • None

    Description

      DirStorageFactory4 has a field called rwsOK defined like this:

      private static final boolean rwsOK = JVMInfo.JDK_ID >= JVMInfo.J2SE_142;

      The only supported platform whose JVMInfo.JDK_ID is less than JVMInfo.J2SE_142, is FP/CDC. But DirStorageFactory4 is not used on FP/CDC because it depends on NIO. This means that the field will always have the value true, and it can be eliminated.

      Attachments

        1. d5541.diff
          4 kB
          Knut Anders Hatlen

        Activity

          People

            knutanders Knut Anders Hatlen
            knutanders Knut Anders Hatlen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: