Fix to make all values lower-case (this should make all existing blacklists compatible with the new enum)

pull/1/head
Roland 'Quix0r' Haeder 13 years ago committed by Michael Peter Christen
parent edaa09b9b1
commit e4d36fa5eb

@ -57,7 +57,12 @@ public class Blacklist {
private static final File BLACKLIST_DHT_CACHEFILE = new File("DATA/WORK/BlacklistCache_DHT.ser");
public enum BlacklistType {
DHT, CRAWLER, PROXY, SEARCH, SURFTIPS, NEWS
DHT, CRAWLER, PROXY, SEARCH, SURFTIPS, NEWS;
@Override
public final String toString () {
return super.toString().toLowerCase();
}
}
public final static String BLACKLIST_FILENAME_FILTER = "^.*\\.black$";

Loading…
Cancel
Save