mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Matthew Swift
23.42.2011 8e9e861649292af6d4bd55d228243cf115addc09
opends/src/server/org/opends/server/extensions/LDAPPassThroughAuthenticationPolicyFactory.java
@@ -101,24 +101,17 @@
      {
        this.startIndex = nextIndex = startIndex;
        DirectoryException lastException = null;
        DirectoryException lastException;
        do
        {
          factory = factories[nextIndex];
          if (factory.isAvailable())
          if (factory.isAvailable)
          {
            try
            {
              if (factory.isAvailable)
              {
                connection = factory.getConnection();
                incrementNextIndex();
                return;
              }
              else if (lastException == null)
              {
                lastException = factory.lastException;
              }
              connection = factory.getConnection();
              incrementNextIndex();
              return;
            }
            catch (final DirectoryException e)
            {
@@ -130,6 +123,10 @@
              lastException = e;
            }
          }
          else
          {
            lastException = factory.lastException;
          }
          incrementNextIndex();
        }
        while (nextIndex != startIndex);
@@ -222,16 +219,13 @@
        while (nextIndex != startIndex)
        {
          factory = factories[nextIndex];
          if (factory.isAvailable())
          if (factory.isAvailable)
          {
            try
            {
              if (factory.isAvailable)
              {
                connection = factory.getConnection();
                incrementNextIndex();
                return;
              }
              connection = factory.getConnection();
              incrementNextIndex();
              return;
            }
            catch (final DirectoryException de)
            {
@@ -319,13 +313,6 @@
          throw e;
        }
      }
      private boolean isAvailable()
      {
        return isAvailable;
      }
    }
@@ -397,7 +384,7 @@
    {
      for (final MonitoredConnectionFactory factory : factories)
      {
        if (!factory.isAvailable())
        if (!factory.isAvailable)
        {
          try
          {