From 4ecfd2604c21a9055780d9c91ec0d5d7ef819086 Mon Sep 17 00:00:00 2001 From: "pixeebot[bot]" <104101892+pixeebot[bot]@users.noreply.github.com> Date: Tue, 9 Apr 2024 17:05:19 +0000 Subject: [PATCH] (Sonar) Fix "Unused local variables should be removed" --- .../java/io/codemodder/plugins/maven/operator/FormatCommand.java | 1 - 1 file changed, 1 deletion(-) diff --git a/plugins/codemodder-plugin-maven/src/main/java/io/codemodder/plugins/maven/operator/FormatCommand.java b/plugins/codemodder-plugin-maven/src/main/java/io/codemodder/plugins/maven/operator/FormatCommand.java index 5058318c0..511ceebc6 100644 --- a/plugins/codemodder-plugin-maven/src/main/java/io/codemodder/plugins/maven/operator/FormatCommand.java +++ b/plugins/codemodder-plugin-maven/src/main/java/io/codemodder/plugins/maven/operator/FormatCommand.java @@ -267,7 +267,6 @@ private void parseXmlAndCharset(POMDocument pomFile) throws XMLStreamException, boolean mustTrack = false; boolean hasPreamble = false; int elementStart = 0; - int elementEnd = 0; List prevEvents = new ArrayList<>(); while (eventReader.hasNext()) {