Explorar el Código

rename utility method, results are not sorted

tags/2.0.1
Jonathan Cobb hace 4 años
padre
commit
b11ff73454
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. +2
    -2
      wizard-server/src/main/java/org/cobbzilla/wizard/dao/NamedIdentityBaseDAO.java

+ 2
- 2
wizard-server/src/main/java/org/cobbzilla/wizard/dao/NamedIdentityBaseDAO.java Ver fichero

@@ -7,7 +7,7 @@ import org.cobbzilla.wizard.model.NamedIdentityBase;
import java.util.*;

import static org.cobbzilla.util.daemon.ZillaRuntime.sorted;
import static org.cobbzilla.util.daemon.ZillaRuntime.sortedList;
import static org.cobbzilla.util.daemon.ZillaRuntime.toList;
import static org.cobbzilla.util.security.ShaUtil.sha256_hex;

public class NamedIdentityBaseDAO<E extends NamedIdentityBase> extends AbstractCRUDDAO<E> {
@@ -29,7 +29,7 @@ public class NamedIdentityBaseDAO<E extends NamedIdentityBase> extends AbstractC
}

protected List<E> findByNames(Object names) { // names can be array or Collection, sortedList ensures we get a List back
final List<E> found = findByFieldIn("name", sortedList(names));
final List<E> found = findByFieldIn("name", toList(names));
if (names.getClass().isArray()) names = Arrays.asList(names);
synchronized (cachedNames) { cachedNames.addAll((Collection) names); }
return found;


Cargando…
Cancelar
Guardar