Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8048091 JNDI code cleanup and modernization
  3. JDK-8048199

Replace anonymous inner classes with lambdas, where applicable, in JNDI

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: P5
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 17
    • Component/s: core-libs
    • Labels:
      None

      Description

      Examples of some suitable candidates:

      javax/naming/ldap/StartTlsRequest.java

          private final ClassLoader getContextClassLoader() {
              return AccessController.doPrivileged(
                  new PrivilegedAction<ClassLoader>() {
                      public ClassLoader run() {
                          return Thread.currentThread().getContextClassLoader();
                      }
                  }
              );
          }

          private final static boolean privilegedHasNext(final Iterator<StartTlsResponse> iter) {
              Boolean answer = AccessController.doPrivileged(
                  new PrivilegedAction<Boolean>() {
                  public Boolean run() {
                      return Boolean.valueOf(iter.hasNext());
                  }
              });
              return answer.booleanValue();
          }

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ccleary Conor Cleary (Inactive)
              Reporter:
              chegar Chris Hegarty
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: