From 8cab6e94514c38151b2e0c53c9df47c6e1682e28 Mon Sep 17 00:00:00 2001 From: ulrich Date: Thu, 21 Jan 2021 19:21:56 +0000 Subject: [PATCH] Anpassungen Foto UI fertig, jQuery ausgebaut --- src/java/de/uhilger/filecms/pub/FileDateComparator.java | 10 ++-------- 1 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/java/de/uhilger/filecms/pub/FileDateComparator.java b/src/java/de/uhilger/filecms/pub/FileDateComparator.java index f94919c..4b0b689 100644 --- a/src/java/de/uhilger/filecms/pub/FileDateComparator.java +++ b/src/java/de/uhilger/filecms/pub/FileDateComparator.java @@ -1,19 +1,13 @@ package de.uhilger.filecms.pub; import java.io.File; -import java.util.Comparator; import java.util.Date; -import java.util.logging.Logger; /** * * @author ulrich */ -public class FileDateComparator implements Comparator { - - private static final Logger logger = Logger.getLogger(FileDateComparator.class.getName()); - - private String order; +public class FileDateComparator extends AbstractComparator { public FileDateComparator(String order) { this.order = order; @@ -32,7 +26,7 @@ if(f1 != null && f2 != null) { Date l1 = new Date(f1.lastModified()); Date l2 = new Date(f2.lastModified()); - if(order != null && order.equalsIgnoreCase("asc")) { + if(order != null && order.equalsIgnoreCase(ORDER_ASC)) { if(l1.before(l2)) { logger.fine("asc: " + f1.getName() + " kleiner " + f2.getName()); return -1; -- Gitblit v1.9.3