From d709a2e4eecc9773af376587c476e33f0ccefce5 Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Tue, 20 May 2014 15:09:56 +0000
Subject: [PATCH] Code cleanup. Used UCDetector and AutoRefactor Eclipse plugins to: * reduce visibility of class members, * add final keywords to fields, * convert comments to javadocs, * etc.

---
 opends/src/server/org/opends/server/replication/service/ReplOutputStream.java |   27 +++++++++++----------------
 1 files changed, 11 insertions(+), 16 deletions(-)

diff --git a/opends/src/server/org/opends/server/replication/service/ReplOutputStream.java b/opends/src/server/org/opends/server/replication/service/ReplOutputStream.java
index df80815..d94a8da 100644
--- a/opends/src/server/org/opends/server/replication/service/ReplOutputStream.java
+++ b/opends/src/server/org/opends/server/replication/service/ReplOutputStream.java
@@ -22,10 +22,10 @@
  *
  *
  *      Copyright 2006-2008 Sun Microsystems, Inc.
+ *      Portions Copyright 2014 ForgeRock AS.
  */
 package org.opends.server.replication.service;
 
-
 import java.io.IOException;
 import java.io.OutputStream;
 
@@ -33,15 +33,13 @@
  * This class creates an output stream that can be used to export entries
  * to a synchronization domain.
  */
-public class ReplOutputStream
-       extends OutputStream
+class ReplOutputStream extends OutputStream
 {
-  // The synchronization domain on which the export is done
-  ReplicationDomain domain;
+  /** The synchronization domain on which the export is done */
+  private final ReplicationDomain domain;
 
-  // The current number of entries exported
-  private long numExportedEntries;
-  String entryBuffer = "";
+  /** The current number of entries exported */
+  private final long numExportedEntries = 0;
 
   /**
    * Creates a new ReplLDIFOutputStream related to a replication
@@ -49,23 +47,20 @@
    *
    * @param domain The replication domain
    */
-  public ReplOutputStream(ReplicationDomain domain)
+  ReplOutputStream(ReplicationDomain domain)
   {
     this.domain = domain;
   }
 
-  /**
-   * {@inheritDoc}
-   */
+  /** {@inheritDoc} */
+  @Override
   public void write(int i) throws IOException
   {
     throw new IOException("Invalid call");
   }
 
-
-  /**
-   * {@inheritDoc}
-   */
+  /** {@inheritDoc} */
+  @Override
   public void write(byte b[], int off, int len) throws IOException
   {
     domain.exportLDIFEntry(b, off, len);

--
Gitblit v1.10.0