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

coulbeck
10.23.2007 5707a30494a378602d934530ce5d17bbe5de64b2
Replace System.out and System.err with a null PrintStream when constructing an LDAPConnection.
1 files modified
8 ■■■■ changed files
opends/src/server/org/opends/server/types/CryptoManager.java 8 ●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/types/CryptoManager.java
@@ -33,6 +33,7 @@
import java.io.IOException;
import java.io.OutputStream;
import java.io.ByteArrayInputStream;
import java.io.PrintStream;
import java.security.*;
import java.security.cert.Certificate;
import java.security.cert.CertificateFactory;
@@ -1961,10 +1962,15 @@
          AtomicInteger nextMessageID = new AtomicInteger(1);
          LDAPConnectionOptions connectionOptions =
               new LDAPConnectionOptions();
          PrintStream nullPrintStream =
               new PrintStream(new OutputStream() {
                 public void write ( int b ) { }
               });
          LDAPConnection connection =
               new LDAPConnection(hostname, ldapPort,
                                  connectionOptions,
                                  System.out, System.err); //FIXME
                                  nullPrintStream,
                                  nullPrintStream);
          connection.connectToHost(null, null, nextMessageID);