Mercurial > dive4elements > river
changeset 699:3c70aa595724 facets-slt
mico opt: inter cmps are faster than str cmps.
flys-artifacts/branches/facets-slt@2146 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Fri, 17 Jun 2011 11:23:57 +0000 |
parents | dae37cbe4ae2 |
children | 94f0f91be11c |
files | flys-artifacts/src/main/java/de/intevation/flys/artifacts/FLYSArtifact.java |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/FLYSArtifact.java Fri Jun 17 11:08:31 2011 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/FLYSArtifact.java Fri Jun 17 11:23:57 2011 +0000 @@ -364,7 +364,7 @@ for (Map.Entry<String, List<Facet>> entry: facets.entrySet()) { for (Facet f: entry.getValue()) { - if (f.getName().equals(name) && f.getIndex() == index) { + if (f.getIndex() == index && f.getName().equals(name)) { return f; } }