From cdf805d662f31d3c6ed7d1a739baf8d237358b57 Mon Sep 17 00:00:00 2001 From: Benjamin Bentmann Date: Fri, 12 Jun 2009 17:28:22 +0000 Subject: [PATCH] o Added toString() to ease debugging git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@784207 13f79535-47bb-0310-9956-ffa450edef68 --- .../repository/ArtifactRepositoryPolicy.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/maven-compat/src/main/java/org/apache/maven/artifact/repository/ArtifactRepositoryPolicy.java b/maven-compat/src/main/java/org/apache/maven/artifact/repository/ArtifactRepositoryPolicy.java index 2cee21065d..b88270effb 100644 --- a/maven-compat/src/main/java/org/apache/maven/artifact/repository/ArtifactRepositoryPolicy.java +++ b/maven-compat/src/main/java/org/apache/maven/artifact/repository/ArtifactRepositoryPolicy.java @@ -146,4 +146,19 @@ public class ArtifactRepositoryPolicy // else assume "never" return checkForUpdates; } + + @Override + public String toString() + { + StringBuilder buffer = new StringBuilder( 64 ); + buffer.append( "{enabled=" ); + buffer.append( enabled ); + buffer.append( ", checksums=" ); + buffer.append( checksumPolicy ); + buffer.append( ", updates=" ); + buffer.append( updatePolicy ); + buffer.append( "}" ); + return buffer.toString(); + } + }