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

Cleanups for KeepAliveCache tests

XMLWordPrintable

    • b24

        The tests in test/jdk/sun/net/www/http/KeepAliveCache could be cleaned up here and there.

        Most notably:
        B5045306.java:
        - does not need to run in othervm
        - the executor service that it uses should be shut down eventually to free resources
        B8291637.java:
        - use just one instead of two test VM invocations
        KeepAliveTimerThread.java:
        call to grp.destroy() at the end is pointless (API is void & deprecated for removal)
        Generally:
        The deprecated URL constructor is used. It can be switched to the handy URIBuilder
        Some more try with resources here and there

              clanger Christoph Langer
              clanger Christoph Langer
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: