Derby
  1. Derby
  2. DERBY-5541

Remove unnecessary field rwsOK in DirStorageFactory4

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 10.9.1.0
    • Fix Version/s: 10.9.1.0
    • Component/s: Store
    • Labels:
      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.

      1. d5541.diff
        4 kB
        Knut Anders Hatlen

        Activity

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development