o Added toString() to ease debugging

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@784207 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2009-06-12 17:28:22 +00:00
parent 8ea0c6f06b
commit cdf805d662
1 changed files with 15 additions and 0 deletions

View File

@ -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();
}
}