mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-17 14:02:22 +00:00
added the toString method for assisting debug efforts
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@9990 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
16f56e5229
commit
697eb6e1d2
1 file changed
+9
@@ -91,4 +91,13 @@ public final class Resource {
|
||||
public int hashCode() {
|
||||
return displayName.hashCode();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder buf = new StringBuilder();
|
||||
if(parent!=null)
|
||||
buf.append(parent).append('/');
|
||||
buf.append(displayName).append('(').append(numConcurrentWrite).append(')');
|
||||
return buf.toString();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user