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

    • Sub-task
    • Resolution: Fixed
    • P5
    • 17
    • 9
    • core-libs
    • 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

              ccleary Conor Cleary
              chegar Chris Hegarty
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: