You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by gn...@apache.org on 2026/05/12 06:51:51 UTC

(camel) branch main updated: chore: replace inline FQCNs with imports in DependencyUpdate (#23132)

This is an automated email from the ASF dual-hosted git repository.

gnodet pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new 5145c7c1697a chore: replace inline FQCNs with imports in DependencyUpdate (#23132)
5145c7c1697a is described below

commit 5145c7c1697ad26dbdd7ee403db50fb6deebc074
Author: Guillaume Nodet <gn...@gmail.com>
AuthorDate: Tue May 12 08:51:44 2026 +0200

    chore: replace inline FQCNs with imports in DependencyUpdate (#23132)
    
    Co-authored-by: Claude Opus 4.6 (1M context) <no...@anthropic.com>
---
 .../org/apache/camel/dsl/jbang/core/commands/DependencyUpdate.java    | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/DependencyUpdate.java b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/DependencyUpdate.java
index 6e08c30c4ee4..2fa706f5ffc7 100644
--- a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/DependencyUpdate.java
+++ b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/DependencyUpdate.java
@@ -16,6 +16,8 @@
  */
 package org.apache.camel.dsl.jbang.core.commands;
 
+import java.io.ByteArrayInputStream;
+import java.nio.charset.StandardCharsets;
 import java.nio.file.Files;
 import java.nio.file.Path;
 import java.util.ArrayList;
@@ -529,7 +531,7 @@ public class DependencyUpdate extends DependencyList {
             if (removed > 0) {
                 lines = content.split("\n");
                 Document updatedDom = XmlLineNumberParser.parseXml(
-                        new java.io.ByteArrayInputStream(content.getBytes(java.nio.charset.StandardCharsets.UTF_8)));
+                        new ByteArrayInputStream(content.getBytes(StandardCharsets.UTF_8)));
                 int insertLine = findLastCamelDependencyLine(updatedDom);
                 if (insertLine > 0) {
                     content = insertMavenDeps(lines, toAdd, insertLine);