From ff19a9128ec7d6a191245c5ab70cc5909af9a2d3 Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Thu, 18 Oct 2007 23:01:32 +0000
Subject: [PATCH] Use ServerConstants.EOL instead of redefining it.
---
opendj-sdk/opends/src/server/org/opends/server/replication/plugin/ReplLDIFOutputStream.java | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/opendj-sdk/opends/src/server/org/opends/server/replication/plugin/ReplLDIFOutputStream.java b/opendj-sdk/opends/src/server/org/opends/server/replication/plugin/ReplLDIFOutputStream.java
index 2c1bf05..bed228e 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/replication/plugin/ReplLDIFOutputStream.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/replication/plugin/ReplLDIFOutputStream.java
@@ -29,6 +29,8 @@
import java.io.IOException;
import java.io.OutputStream;
+import org.opends.server.util.ServerConstants;
+
/**
* This class creates an output stream that can be used to export entries
* to a synchonization domain.
@@ -44,7 +46,6 @@
// The current number of entries exported
long numExportedEntries;
- static String newline = System.getProperty("line.separator");
String entryBuffer = "";
/**
@@ -81,7 +82,8 @@
{
// if we have the bytes for an entry, let's make an entry and send it
String ebytes = new String(b,startOfEntryIndex,bytesToRead);
- endOfEntryIndex = ebytes.indexOf(newline + newline);
+ endOfEntryIndex = ebytes.indexOf(ServerConstants.EOL +
+ ServerConstants.EOL);
if ( endOfEntryIndex >= 0 )
{
--
Gitblit v1.10.0