Delete unused parameters and variables in SocketPermission

XMLWordPrintable

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

            Assignee:
            Daniel Fuchs
            Reporter:
            Andrey Turbanov
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: