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

elharo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-dependency-plugin.git


The following commit(s) were added to refs/heads/master by this push:
     new c98c851a Elaborate on DependencyUtil.log in doc comment (#449)
c98c851a is described below

commit c98c851aec9a0309756b2de089c8d8fa5876e99c
Author: Elliotte Rusty Harold <elh...@users.noreply.github.com>
AuthorDate: Wed Oct 23 13:10:59 2024 +0000

    Elaborate on DependencyUtil.log in doc comment (#449)
    
    * Elaborate on DependencyUtil.log in doc comment
    * typo
---
 .../org/apache/maven/plugins/dependency/utils/DependencyUtil.java   | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git 
a/src/main/java/org/apache/maven/plugins/dependency/utils/DependencyUtil.java 
b/src/main/java/org/apache/maven/plugins/dependency/utils/DependencyUtil.java
index 2de653dc..bdccfee9 100644
--- 
a/src/main/java/org/apache/maven/plugins/dependency/utils/DependencyUtil.java
+++ 
b/src/main/java/org/apache/maven/plugins/dependency/utils/DependencyUtil.java
@@ -242,7 +242,11 @@ public final class DependencyUtil {
     }
 
     /**
-     * Writes the specified string to the log at info level.
+     * Writes each line in the specified string to the log at info level.
+     * The difference between calling
+     * {@code DependencyUtil.log(s, log)} and {@code log.info(s)} is that the 
latter
+     * will put "[INFO]" in front of each line in the string whereas the 
former only
+     * outputs it once at the front of the string.
      *
      * @param string the string to write
      * @param log where to log information

Reply via email to