You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2014/11/07 03:10:50 UTC
svn commit: r1637288 -
/directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/message/controls/SortKey.java
Author: elecharny
Date: Fri Nov 7 02:10:49 2014
New Revision: 1637288
URL: http://svn.apache.org/r1637288
Log:
Default the reverseOrder to false, as requested by the RFC 2981
Modified:
directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/message/controls/SortKey.java
Modified: directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/message/controls/SortKey.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/message/controls/SortKey.java?rev=1637288&r1=1637287&r2=1637288&view=diff
==============================================================================
--- directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/message/controls/SortKey.java (original)
+++ directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/message/controls/SortKey.java Fri Nov 7 02:10:49 2014
@@ -20,8 +20,6 @@
package org.apache.directory.api.ldap.model.message.controls;
-
-
/**
* Datastructure to store the Attribute name, matching rule ID of the attribute<br>
* and the sort order.
@@ -41,9 +39,9 @@ public class SortKey
private String matchingRuleId;
/**
- * A flag to set to true to get the result in reverse order
+ * A flag to set to true to get the result in reverse order. Default to false
*/
- private boolean reverseOrder;
+ private boolean reverseOrder = false;
/**
@@ -68,7 +66,7 @@ public class SortKey
this( attributeTypeDesc, matchingRuleId, false );
}
-
+
/**
* Create a new instance of a SortKey for a give AttributeType
*
@@ -148,7 +146,7 @@ public class SortKey
sb.append( "SortKey : [" );
sb.append( attributeTypeDesc );
-
+
if ( matchingRuleId != null )
{
sb.append( ", " ).append( matchingRuleId );