Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8274497

Unnecessary Vector usage in AquaFileSystemModel

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P5 P5
    • 18
    • 16, 17
    • client-libs
    • None

      Fields 'AquaFileSystemModel.fileCache' and 'AquaFileSystemModel.FilesLoader.queuedTasks' are accessed only under synchronized(fileCacheLock).
      It means extract synchronization by Vector is not needed. And we can use non-thread safe ArrayList instead.

            aturbanov Andrey Turbanov
            aturbanov Andrey Turbanov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: