mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
cleanup
This commit is contained in:
@@ -47,7 +47,7 @@ class ContentEncodingInterceptor implements HttpResponseInterceptor {
|
|||||||
@Override
|
@Override
|
||||||
public Header getContentEncoding() {
|
public Header getContentEncoding() {
|
||||||
return null;
|
return null;
|
||||||
};
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
response.setEntity(wrapped);
|
response.setEntity(wrapped);
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ public class FeedEntryStatusDAO extends GenericDAO<FeedEntryStatus> {
|
|||||||
builder.append(o2.getEntryUpdated(), o1.getEntryUpdated());
|
builder.append(o2.getEntryUpdated(), o1.getEntryUpdated());
|
||||||
builder.append(o2.getId(), o1.getId());
|
builder.append(o2.getId(), o1.getId());
|
||||||
return builder.toComparison();
|
return builder.toComparison();
|
||||||
};
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
private static final Comparator<FeedEntryStatus> STATUS_COMPARATOR_ASC = Ordering.from(STATUS_COMPARATOR_DESC).reverse();
|
private static final Comparator<FeedEntryStatus> STATUS_COMPARATOR_ASC = Ordering.from(STATUS_COMPARATOR_DESC).reverse();
|
||||||
|
|||||||
@@ -5,11 +5,11 @@ import java.util.concurrent.RejectedExecutionHandler;
|
|||||||
import java.util.concurrent.ThreadPoolExecutor;
|
import java.util.concurrent.ThreadPoolExecutor;
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
|
|
||||||
import lombok.extern.slf4j.Slf4j;
|
|
||||||
|
|
||||||
import com.codahale.metrics.Gauge;
|
import com.codahale.metrics.Gauge;
|
||||||
import com.codahale.metrics.MetricRegistry;
|
import com.codahale.metrics.MetricRegistry;
|
||||||
|
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Wraps a {@link ThreadPoolExecutor} instance. Blocks when queue is full instead of rejecting the task. Allow priority queueing by using
|
* Wraps a {@link ThreadPoolExecutor} instance. Blocks when queue is full instead of rejecting the task. Allow priority queueing by using
|
||||||
* {@link Task} instead of {@link Runnable}
|
* {@link Task} instead of {@link Runnable}
|
||||||
@@ -43,7 +43,7 @@ public class FeedRefreshExecutor {
|
|||||||
if (t != null) {
|
if (t != null) {
|
||||||
log.error("thread from pool {} threw a runtime exception", poolName, t);
|
log.error("thread from pool {} threw a runtime exception", poolName, t);
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
};
|
};
|
||||||
pool.setRejectedExecutionHandler(new RejectedExecutionHandler() {
|
pool.setRejectedExecutionHandler(new RejectedExecutionHandler() {
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ public class OPML11Parser extends OPML10Parser {
|
|||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
};
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public WireFeed parse(Document document, boolean validate, Locale locale) throws IllegalArgumentException, FeedException {
|
public WireFeed parse(Document document, boolean validate, Locale locale) throws IllegalArgumentException, FeedException {
|
||||||
|
|||||||
Reference in New Issue
Block a user