# HG changeset patch # User Sascha L. Teichmann # Date 1308309837 0 # Node ID 3c70aa595724156f6fb8424916863ebd088445bd # Parent dae37cbe4ae2f502233d8526a5cb047d5c59c2e8 mico opt: inter cmps are faster than str cmps. flys-artifacts/branches/facets-slt@2146 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r dae37cbe4ae2 -r 3c70aa595724 flys-artifacts/src/main/java/de/intevation/flys/artifacts/FLYSArtifact.java --- 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> 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; } }