From 8289a0b1097f02a99d62f4f7750e6b46a54a54fc Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 9 Feb 2024 16:02:43 +0300 Subject: Append IDEA code suggestions --- src/main/java/com/juick/util/HttpUtils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java/com/juick/util/HttpUtils.java') diff --git a/src/main/java/com/juick/util/HttpUtils.java b/src/main/java/com/juick/util/HttpUtils.java index 46bb3e2d..22598977 100644 --- a/src/main/java/com/juick/util/HttpUtils.java +++ b/src/main/java/com/juick/util/HttpUtils.java @@ -97,7 +97,7 @@ public class HttpUtils { try { urlConn = url.openConnection(); } catch (IOException e) { - logger.error(String.format("Failed open url: %s", url.toString())); + logger.error(String.format("Failed open url: %s", url)); throw e; } @@ -108,7 +108,7 @@ public class HttpUtils { Files.copy(is, Paths.get(tmpDir, attachmentFName)); return URI.create(String.format("juick://%s", attachmentFName)); } catch (IOException e) { - logger.error(String.format("Failed download image by url: %s", url.toString()), e); + logger.error(String.format("Failed download image by url: %s", url), e); throw e; } } -- cgit v1.2.3