---
date_published: 2026-10-08
date_modified: 2026-10-08
canonical_url: https://metricshub.org/simple-http-java/spotbugs.html
---

# SpotBugs Bug Detector Report

The following document contains the results of [SpotBugs](https://spotbugs.github.io/)

SpotBugs Version is *4.9.3*

Threshold is *medium*

Effort is *default*

# Summary

| Classes | Bugs | Errors | Missing Classes |
| --- | --- | --- | --- |
| 7 | 4 | 0 | 0 |

# Files

| Class | Bugs |
| --- | --- |
| [org.metricshub.http.HttpClient](#orgmetricshubhttphttpclient) | 3 |
| [org.metricshub.http.ProtocolOverridingSSLSocketFactory](#org-metricshub-http-protocoloverridingsslsocketfactory) | 1 |

## org.metricshub.http.HttpClient

| Bug | Category | Details | Line | Priority |
| --- | --- | --- | --- | --- |
| org.metricshub.http.HttpClient.<static initializer for HttpClient>() might ignore java.security.KeyManagementException | BAD_PRACTICE | [DE_MIGHT_IGNORE](https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#DE_MIGHT_IGNORE) | [112](./xref/org/metricshub/http/HttpClient.html#L112) | Medium |
| org.metricshub.http.HttpClient.<static initializer for HttpClient>() might ignore java.security.NoSuchAlgorithmException | BAD_PRACTICE | [DE_MIGHT_IGNORE](https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#DE_MIGHT_IGNORE) | [112](./xref/org/metricshub/http/HttpClient.html#L112) | Medium |
| Possible null pointer dereference of sc in org.metricshub.http.HttpClient.<static initializer for HttpClient>() on exception path | CORRECTNESS | [NP_NULL_ON_SOME_PATH_EXCEPTION](https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#NP_NULL_ON_SOME_PATH_EXCEPTION) | [113](./xref/org/metricshub/http/HttpClient.html#L113) | Medium |

## org.metricshub.http.ProtocolOverridingSSLSocketFactory

| Bug | Category | Details | Line | Priority |
| --- | --- | --- | --- | --- |
| new org.metricshub.http.ProtocolOverridingSSLSocketFactory(SSLSocketFactory, String[]) may expose internal representation by storing an externally mutable object into ProtocolOverridingSSLSocketFactory.enabledProtocols | MALICIOUS_CODE | [EI_EXPOSE_REP2](https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#EI_EXPOSE_REP2) | [49](./xref/org/metricshub/http/ProtocolOverridingSSLSocketFactory.html#L49) | Medium |
