minor optimization

This commit is contained in:
zzz
2012-10-14 13:54:38 +00:00
parent 5d6d27907d
commit 184220f4c5

View File

@ -456,10 +456,11 @@ public class SummaryHelper extends HelperBase {
/** compare translated nicknames - put "shared clients" first in the sort */
private class AlphaComparator implements Comparator<Destination> {
private final String xsc = _("shared clients");
public int compare(Destination lhs, Destination rhs) {
String lname = getName(lhs);
String rname = getName(rhs);
String xsc = _("shared clients");
if (lname.equals(xsc))
return -1;
if (rname.equals(xsc))