From 7d056a60c47e20f79ea11d58136495439b860934 Mon Sep 17 00:00:00 2001 From: Sylwester Lachiewicz Date: Sat, 31 Aug 2024 18:42:26 +0200 Subject: [PATCH] fix checkstyle --- .../java/org/apache/maven/scm/provider/hg/HgScmProvider.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/maven-scm-providers/maven-scm-provider-hg/src/main/java/org/apache/maven/scm/provider/hg/HgScmProvider.java b/maven-scm-providers/maven-scm-provider-hg/src/main/java/org/apache/maven/scm/provider/hg/HgScmProvider.java index 9747ac547..9b6d68378 100644 --- a/maven-scm-providers/maven-scm-provider-hg/src/main/java/org/apache/maven/scm/provider/hg/HgScmProvider.java +++ b/maven-scm-providers/maven-scm-provider-hg/src/main/java/org/apache/maven/scm/provider/hg/HgScmProvider.java @@ -119,8 +119,7 @@ private HgUrlParserResult parseScmUrl(String scmSpecificUrl) { } } else { try { - @SuppressWarnings("unused") - File file = new File(scmSpecificUrl); + new File(scmSpecificUrl); } catch (Throwable e) { result.messages.add("The filename provided is not valid");