Remove redundant synchronized from URLStreamHandler.openConnection methods

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P5
    • 19
    • Affects Version/s: None
    • Component/s: 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'.

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

              Created:
              Updated:
              Resolved: