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

Redundant call to set InetAddressCachePolicy to FOREVER if not set during initialization

XMLWordPrintable

    • b53
    • generic
    • generic

        System.setSecurityManager0 calls
          InetAddressCachePolicy.setIfNotSet(InetAddressCachePolicy.FOREVER);

        This call is redundant since the default cache policy is already set to FOREVER if not set by the command-line property when InetAddressCachePolicy is loaded and initialized (done by the static initializer).

        We can remove this call from System.setSecurityManager0() implementation.

              mchung Mandy Chung (Inactive)
              mchung Mandy Chung (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: