From 61170eb896ac0b7d9ac91c276699d1f1c3c8d8c9 Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Mon, 20 Apr 2015 14:51:08 +0000
Subject: [PATCH] Code cleanup
---
opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/EntryIDSet.java | 20 ++++++++------------
1 files changed, 8 insertions(+), 12 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/EntryIDSet.java b/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/EntryIDSet.java
index c9d7924..002b9e4 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/EntryIDSet.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/EntryIDSet.java
@@ -83,14 +83,12 @@
Iterator<EntryID> iterator(EntryID begin);
}
- /**
- * Define serialization contract for EntryIDSet
- */
+ /** Define serialization contract for EntryIDSet. */
interface EntryIDSetCodec {
- static final int INT_SIZE = 4;
+ int INT_SIZE = 4;
- static final int LONG_SIZE = 8;
+ int LONG_SIZE = 8;
ByteString encode(EntryIDSet idSet);
@@ -462,16 +460,14 @@
}
}
- /**
- * Legacy EntryIDSet codec implementation
- */
+ /** Legacy EntryIDSet codec implementation. */
private static final class EntryIDSetCodecV1 implements EntryIDSetCodec
{
@Override
public ByteString encode(EntryIDSet idSet)
{
- return ByteString.wrap(append(new ByteStringBuilder(getEstimatedSize(idSet)), idSet).trimToSize()
- .getBackingArray());
+ return ByteString.wrap(append(
+ new ByteStringBuilder(getEstimatedSize(idSet)), idSet).trimToSize().getBackingArray());
}
@Override
@@ -894,7 +890,7 @@
return;
}
- final boolean thatSetOverlap = (compareForOverlap(getRange(), that.getRange()) == 0);
+ final boolean thatSetOverlap = compareForOverlap(getRange(), that.getRange()) == 0;
if (thatSetOverlap)
{
concreteImpl = new DefinedImpl(intersection(concreteImpl.getIDs(), that.getIDs()));
@@ -1024,7 +1020,7 @@
/**
* @return -1 if o1 < o2, 0 if o1 overlap o2, +1 if o1 > o2
*/
- private static final int compareForOverlap(long[] o1, long[] o2)
+ private static int compareForOverlap(long[] o1, long[] o2)
{
if (o1 == null && o2 == null)
{
--
Gitblit v1.10.0