remove the Managed interface for classes that are not managed by dropwizard

This commit is contained in:
Athou
2024-01-09 14:09:24 +01:00
parent fd0425a2be
commit 9ede8d1c46
2 changed files with 2 additions and 9 deletions

View File

@@ -31,7 +31,6 @@ import com.commafeed.CommaFeedConfiguration;
import com.google.common.collect.Iterables;
import com.google.common.net.HttpHeaders;
import io.dropwizard.lifecycle.Managed;
import jakarta.inject.Inject;
import jakarta.inject.Singleton;
import lombok.Getter;
@@ -44,7 +43,7 @@ import nl.altindag.ssl.apache5.util.Apache5SslUtils;
*
*/
@Singleton
public class HttpGetter implements Managed {
public class HttpGetter {
private final CloseableHttpClient client;
@@ -154,11 +153,6 @@ public class HttpGetter implements Managed {
.build();
}
@Override
public void stop() throws Exception {
client.close();
}
@Getter
public static class NotModifiedException extends Exception {
private static final long serialVersionUID = 1L;