Repository: mercurial
Revision: 108
Author: Bill Shannon <bill.shannon_at_sun.com>
Date: 2009-02-05 01:42:54 UTC
Log Message:
-----------
Override toString method to include item name.
Modified Paths:
--------------
mail/src/main/java/javax/mail/FetchProfile.java
Diffs:
-----
diff -r 6dae9c3bd314 -r 34245dfd41fa
mail/src/main/java/javax/mail/FetchProfile.java
--- a/mail/src/main/java/javax/mail/FetchProfile.java Wed Feb 04
15:57:22 2009 -0800
+++ b/mail/src/main/java/javax/mail/FetchProfile.java Wed Feb 04
17:42:54 2009 -0800
@@ -1,7 +1,7 @@
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
- * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 1997-2009 Sun Microsystems, Inc. All rights reserved.
*
* The contents of this file are subject to the terms of either the
GNU
* General Public License Version 2 only ("GPL") or the Common
Development
@@ -136,6 +136,13 @@
protected Item(String name) {
this.name = name;
}
+
+ /**
+ * Include the name in the toString return value for debugging.
+ */
+ public String toString() {
+ return getClass().getName() + "[" + name + "]";
+ }
}
/**