From 9ac86d19f2547a64180066331fb242c94ed1dff4 Mon Sep 17 00:00:00 2001
From: Chris Ridd <chris.ridd@forgerock.com>
Date: Mon, 13 Oct 2014 15:01:41 +0000
Subject: [PATCH] Backport OPENDJ-1567: correct argument order and error checks in newOffsetControl
---
opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/controls/VirtualListViewRequestControl.java | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/controls/VirtualListViewRequestControl.java b/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/controls/VirtualListViewRequestControl.java
index c3f98c8..6fd4171 100644
--- a/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/controls/VirtualListViewRequestControl.java
+++ b/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/controls/VirtualListViewRequestControl.java
@@ -22,7 +22,7 @@
*
*
* Copyright 2010 Sun Microsystems, Inc.
- * Portions copyright 2012 ForgeRock AS.
+ * Portions copyright 2012-2014 ForgeRock AS.
*/
package org.forgerock.opendj.ldap.controls;
@@ -303,11 +303,11 @@
final ByteString contextID) {
Validator.ensureTrue(beforeCount >= 0, "beforeCount is less than 0");
Validator.ensureTrue(afterCount >= 0, "afterCount is less than 0");
- Validator.ensureTrue(offset > 0, "beforeCount is less than 1");
- Validator.ensureTrue(contentCount >= 0, "afterCount is less than 0");
+ Validator.ensureTrue(offset > 0, "offset is less than 1");
+ Validator.ensureTrue(contentCount >= 0, "contentCount is less than 0");
- return new VirtualListViewRequestControl(isCritical, beforeCount, afterCount, offset,
- contentCount, null, contextID);
+ return new VirtualListViewRequestControl(isCritical, beforeCount, afterCount, contentCount,
+ offset, null, contextID);
}
private final int beforeCount;
--
Gitblit v1.10.0