File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
lightblue-ldap-crud/src/main/java/com/redhat/lightblue/crud/ldap/translator Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 18
18
*/
19
19
package com .redhat .lightblue .crud .ldap .translator ;
20
20
21
- import java .util .LinkedHashSet ;
22
- import java .util .Set ;
21
+ import java .util .ArrayList ;
22
+ import java .util .List ;
23
23
24
24
import com .redhat .lightblue .query .CompositeSortKey ;
25
25
import com .redhat .lightblue .query .Sort ;
34
34
public class SortTranslator {
35
35
36
36
public com .unboundid .ldap .sdk .controls .SortKey [] translate (Sort sort ){
37
- Set <com .unboundid .ldap .sdk .controls .SortKey > results = new LinkedHashSet <com .unboundid .ldap .sdk .controls .SortKey >();
37
+ List <com .unboundid .ldap .sdk .controls .SortKey > results = new ArrayList <com .unboundid .ldap .sdk .controls .SortKey >();
38
38
doTranslate (sort , results );
39
39
return results .toArray (new com .unboundid .ldap .sdk .controls .SortKey [0 ]);
40
40
}
41
41
42
42
/*
43
43
* Recursive method!
44
44
*/
45
- private void doTranslate (Sort sort , Set <com .unboundid .ldap .sdk .controls .SortKey > results ){
45
+ private void doTranslate (Sort sort , List <com .unboundid .ldap .sdk .controls .SortKey > results ){
46
46
if (sort instanceof CompositeSortKey ){
47
47
CompositeSortKey comoposite = (CompositeSortKey ) sort ;
48
48
for (Sort subSort : comoposite .getKeys ()){
You can’t perform that action at this time.
0 commit comments