From 99aaa917a95d7ec19e14dad25f61f58ff84753b1 Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Tue, 24 Mar 2015 10:49:57 +0000
Subject: [PATCH] Autorefactored javadocs
---
opendj-server-legacy/src/main/java/org/opends/server/replication/plugin/GenerationIdChecksum.java | 40 +++++++++++++++-------------------------
1 files changed, 15 insertions(+), 25 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/replication/plugin/GenerationIdChecksum.java b/opendj-server-legacy/src/main/java/org/opends/server/replication/plugin/GenerationIdChecksum.java
index 8b445a3..7f6aa1e 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/replication/plugin/GenerationIdChecksum.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/replication/plugin/GenerationIdChecksum.java
@@ -39,20 +39,16 @@
*/
public class GenerationIdChecksum implements Checksum
{
- // Checksum to be returned.
+ /** Checksum to be returned. */
private long checksum;
- /**
- * This is the generation id for an empty backend.
- */
+ /** This is the generation id for an empty backend. */
public static final long EMPTY_BACKEND_GENERATION_ID = 48L;
- /**
- * Update the checksum with one added byte.
- */
+ /** Update the checksum with one added byte. */
private void updateWithOneByte(byte b)
{
- /**
+ /*
* The "end of line" code is CRLF under windows but LF on UNIX. So to get
* the same checksum value on every platforms, we always exclude the CR and
* LF characters from the computation.
@@ -63,17 +59,13 @@
}
}
- /**
- * {@inheritDoc}
- */
+ /** {@inheritDoc} */
public void update(int b)
{
updateWithOneByte((byte) b);
}
- /**
- * {@inheritDoc}
- */
+ /** {@inheritDoc} */
public void update(byte[] b, int off, int len)
{
for (int i = off; i < (off + len); i++)
@@ -82,9 +74,7 @@
}
}
- /**
- * {@inheritDoc}
- */
+ /** {@inheritDoc} */
public long getValue()
{
if (checksum != 0L)
@@ -92,18 +82,18 @@
return checksum;
} else
{
- // Computing an empty backend writes the number of entries (0) only, which
- // will not be added to the checksum as no entries will follow. To treat
- // this special case, and to keep consistency with old versions, in that
- // case we hardcode and return the generation id value for an empty
- // backend.
+ /*
+ * Computing an empty backend writes the number of entries (0) only,
+ * will not be added to the checksum as no entries will follow. To treat
+ * this special case, and to keep consistency with old versions, in that
+ * case we hardcode and return the generation id value for an empty
+ * backend.
+ */
return EMPTY_BACKEND_GENERATION_ID;
}
}
- /**
- * {@inheritDoc}
- */
+ /** {@inheritDoc} */
public void reset()
{
checksum = 0L;
--
Gitblit v1.10.0