From f9d86c3cf05c00d29643e03d6c6af9e716b4eaa9 Mon Sep 17 00:00:00 2001 From: "Erik C. Thauvin" Date: Fri, 13 Sep 2019 16:28:24 -0700 Subject: [PATCH] Cleanup. --- src/main/java/net/thauvin/erik/mobibot/modules/StockQuote.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/net/thauvin/erik/mobibot/modules/StockQuote.java b/src/main/java/net/thauvin/erik/mobibot/modules/StockQuote.java index 30c53dd..912f287 100644 --- a/src/main/java/net/thauvin/erik/mobibot/modules/StockQuote.java +++ b/src/main/java/net/thauvin/erik/mobibot/modules/StockQuote.java @@ -81,7 +81,7 @@ public final class StockQuote extends ThreadedModule { properties.put(ALPHAVANTAGE_API_KEY_PROP, ""); } - @SuppressFBWarnings("NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE") + @SuppressFBWarnings(value = "NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE", justification = "false positive?") private static JSONObject getJsonResponse(final Response response, final String debugMessage) throws IOException, ModuleException { if (response.isSuccessful()) { @@ -131,7 +131,6 @@ public final class StockQuote extends ThreadedModule { * @return The {@link Message} array containing the stock quote. * @throws ModuleException If an errors occurs. */ - @SuppressFBWarnings(value = "NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE", justification = "false positive?") static List getQuote(final String symbol, final String apiKey) throws ModuleException { if (!Utils.isValidString(apiKey)) { throw new ModuleException(Utils.capitalize(STOCK_CMD) + " is disabled. The API key is missing.");