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

Remove redundant synchronized from URLStreamHandler.openConnection methods

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P5 P5
    • 19
    • None
    • core-libs
    • None
    • b08

      Some implementations of URLStreamHandler have 'synchronized' in openConnection method:
      1. sun.net.www.protocol.mailto.Handler
      2. unix/sun.net.www.protocol.file.Handler
      3. windows/sun.net.www.protocol.file.Handler

      Handler's objects themselves are stateless objects. Such synchronization is redundant. Other implementations don't have 'synchronized'.

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

              Created:
              Updated:
              Resolved: