This is an automated email from the ASF dual-hosted git repository. michaelo pushed a commit to branch dependency-cleanup in repository https://gitbox.apache.org/repos/asf/maven-doxia.git
commit be44afd985dbbb6888782d9d947d83425a7ec791 Author: Michael Osipov <[email protected]> AuthorDate: Sat Jan 8 18:34:29 2022 +0100 [DOXIA-634] Drop and replace usage of Commons Lang in Core --- doxia-core/pom.xml | 5 ----- .../java/org/apache/maven/doxia/sink/impl/SinkEventElement.java | 9 +++++++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/doxia-core/pom.xml b/doxia-core/pom.xml index ef1686f..db4b7e6 100644 --- a/doxia-core/pom.xml +++ b/doxia-core/pom.xml @@ -56,11 +56,6 @@ under the License. </dependency> <dependency> <groupId>org.apache.commons</groupId> - <artifactId>commons-lang3</artifactId> - <version>3.8.1</version> - </dependency> - <dependency> - <groupId>org.apache.commons</groupId> <artifactId>commons-text</artifactId> <version>1.3</version> </dependency> diff --git a/doxia-core/src/test/java/org/apache/maven/doxia/sink/impl/SinkEventElement.java b/doxia-core/src/test/java/org/apache/maven/doxia/sink/impl/SinkEventElement.java index 78efe07..73cd4a9 100644 --- a/doxia-core/src/test/java/org/apache/maven/doxia/sink/impl/SinkEventElement.java +++ b/doxia-core/src/test/java/org/apache/maven/doxia/sink/impl/SinkEventElement.java @@ -19,7 +19,7 @@ package org.apache.maven.doxia.sink.impl; * under the License. */ -import org.apache.commons.lang3.builder.ToStringBuilder; +import java.util.Arrays; /** * A single sink event, used for testing purposes in order to check @@ -81,6 +81,11 @@ public class SinkEventElement @Override public String toString() { - return ToStringBuilder.reflectionToString( this ); + StringBuilder builder = new StringBuilder(); + builder.append( this.getClass().getSimpleName() ).append( '[' ); + builder.append( "methodName: " ).append( methodName ).append( ", " ); + builder.append( "args: " ).append( Arrays.toString( args ) ); + builder.append( ']' ); + return builder.toString(); } }
