From 871249e392fb5e22721e48290a4fb78f8bfa04c9 Mon Sep 17 00:00:00 2001 From: w3stling Date: Sat, 17 Feb 2024 09:06:39 +0100 Subject: [PATCH] Fix code smell --- src/main/java/com/apptasticsoftware/mic/Mic.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/apptasticsoftware/mic/Mic.java b/src/main/java/com/apptasticsoftware/mic/Mic.java index 352d602..e350644 100644 --- a/src/main/java/com/apptasticsoftware/mic/Mic.java +++ b/src/main/java/com/apptasticsoftware/mic/Mic.java @@ -191,7 +191,7 @@ public String getCity() { * @deprecated * Use {@link #getWebsite() getWebsite} method instead. */ - @SuppressWarnings("java:S1845") + @SuppressWarnings({"java:S1845", "java:S1133"}) @Deprecated(since = "3.0.14", forRemoval = true) public Optional getWebSite() { return Optional.ofNullable(website); @@ -201,7 +201,7 @@ public Optional getWebSite() { * Website of the market. * @return URL to website */ - @SuppressWarnings({"java:S1845", "java:S1133"}) + @SuppressWarnings("java:S1845") public Optional getWebsite() { return Optional.ofNullable(website); }