From a41662c1136b2bb4a4198df89e0e87d2be3ef099 Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Thu, 16 Jul 2015 14:57:56 +0000
Subject: [PATCH] AutoRefactor'ed simplify expressions
---
opendj-server-legacy/src/main/java/org/opends/server/backends/jeb/JebFormat.java | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/backends/jeb/JebFormat.java b/opendj-server-legacy/src/main/java/org/opends/server/backends/jeb/JebFormat.java
index f2787e7..9a7a318 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/backends/jeb/JebFormat.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/backends/jeb/JebFormat.java
@@ -85,7 +85,7 @@
for (int i = start; i < end; i++)
{
v <<= 8;
- v |= (bytes[i] & 0xFF);
+ v |= bytes[i] & 0xFF;
}
return v;
}
@@ -108,11 +108,11 @@
if(bytes.length == 8)
{
long v = 0;
- v |= (bytes[0] & 0x7F);
+ v |= bytes[0] & 0x7F;
for (int i = 1; i < 8; i++)
{
v <<= 8;
- v |= (bytes[i] & 0xFF);
+ v |= bytes[i] & 0xFF;
}
return v;
}
@@ -145,7 +145,7 @@
v |= (decodedBytes[pos++] & 0xFFL) << 24;
v |= (decodedBytes[pos++] & 0xFFL) << 16;
v |= (decodedBytes[pos++] & 0xFFL) << 8;
- v |= (decodedBytes[pos++] & 0xFFL);
+ v |= decodedBytes[pos++] & 0xFFL;
entryIDList[i] = v;
}
@@ -169,7 +169,7 @@
v |= (decodedBytes[pos++] & 0xFFL) << 24;
v |= (decodedBytes[pos++] & 0xFFL) << 16;
v |= (decodedBytes[pos++] & 0xFFL) << 8;
- v |= (decodedBytes[pos++] & 0xFFL);
+ v |= decodedBytes[pos++] & 0xFFL;
entryIDList[i] = v;
}
--
Gitblit v1.10.0