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

Delete unused parameters and variables in SocketPermission

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P5 P5
    • 23
    • None
    • core-libs
    • None
    • b14

      There is 'int defval' parameter in the method 'java.net.SocketPermission#initEphemeralPorts'. It's unused since JDK-8028293.
      It can be removed.
      It can be removed together with the field 'java.net.SocketPermission#DEF_EPH_LOW' which is only used as a actual value for this parameter.


      -----
      Updated according to the pull request:

      `java.net.SocketPermission` has some other unused parameters and variables which need to be removed. The pull request also removes such code and trivially refactors the code.

            dfuchs Daniel Fuchs
            aturbanov Andrey Turbanov
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: