mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Chris Ridd
13.55.2014 95c74c3ab6aa50ece3f157fdae92a294d1d9c9fb
OPENDJ-1567 CR-4823 correct argument order and error checks in newOffsetControl
1 files modified
8 ■■■■ changed files
opendj-core/src/main/java/org/forgerock/opendj/ldap/controls/VirtualListViewRequestControl.java 8 ●●●● patch | view | raw | blame | history
opendj-core/src/main/java/org/forgerock/opendj/ldap/controls/VirtualListViewRequestControl.java
@@ -302,11 +302,11 @@
            final ByteString contextID) {
        Reject.ifFalse(beforeCount >= 0, "beforeCount is less than 0");
        Reject.ifFalse(afterCount >= 0, "afterCount is less than 0");
        Reject.ifFalse(offset > 0, "beforeCount is less than 1");
        Reject.ifFalse(contentCount >= 0, "afterCount is less than 0");
        Reject.ifFalse(offset > 0, "offset is less than 1");
        Reject.ifFalse(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;