Changeset a2e7fa8


Ignore:
Timestamp:
Dec 22, 2013 2:23:01 PM (6 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
18146da
Parents:
30ccf1b
Message:

another minor dir listing speedup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/i2psnark/java/src/org/klomp/snark/web/I2PSnarkServlet.java

    r30ccf1b ra2e7fa8  
    21552155
    21562156        public int compare(File l, File r) {
    2157             if (l.isDirectory() && !r.isDirectory())
     2157            boolean ld = l.isDirectory();
     2158            boolean rd = r.isDirectory();
     2159            if (ld && !rd)
    21582160                return -1;
    2159             if (r.isDirectory() && !l.isDirectory())
     2161            if (rd && !ld)
    21602162                return 1;
    21612163            return collator.compare(l.getName(), r.getName());
Note: See TracChangeset for help on using the changeset viewer.