Skip to content

Commit

Permalink
dependency-manager: make it a singleton (#901)
Browse files Browse the repository at this point in the history
Avoids double initialization in the agent, might save some bytes in
memory/on disk.
  • Loading branch information
ibodrov authored May 6, 2024
1 parent 1558eae commit 04968e3
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
import org.slf4j.LoggerFactory;

import javax.inject.Inject;
import javax.inject.Singleton;
import javax.xml.bind.DatatypeConverter;
import java.io.IOException;
import java.io.InputStream;
Expand All @@ -64,6 +65,7 @@
import java.util.concurrent.Callable;
import java.util.stream.Collectors;

@Singleton
public class DependencyManager {

private static final Logger log = LoggerFactory.getLogger(DependencyManager.class);
Expand Down

0 comments on commit 04968e3

Please sign in to comment.