krysalis-version/src/java/org/krysalis/version/util/debug DebugUtils.java,1.1,1.2
[email protected] Tue, 25 Mar 2003 08:01:16 -0800
| Newsgroups | gmane.comp.krysalis.sandbox |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/metamorphosis/krysalis-version/src/java/org/krysalis/version/util/debug
In directory sc8-pr-cvs1:/tmp/cvs-serv1962/src/java/org/krysalis/version/util/debug
Modified Files:
DebugUtils.java
Log Message:
Tried working on DatestampedSpec...
Index: DebugUtils.java
===================================================================
RCS file: /cvsroot/metamorphosis/krysalis-version/src/java/org/krysalis/version/util/debug/DebugUtils.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** DebugUtils.java 5 Mar 2003 19:57:05 -0000 1.1
--- DebugUtils.java 25 Mar 2003 16:01:12 -0000 1.2
***************
*** 107,114 ****
}
public static void dump(Dumpable d) {
dump(System.out, 0, d);
}
!
public static void dump(PrintStream out, Dumpable d) {
dump(out, 0, d);
--- 107,118 ----
}
+ public static void dump(String title, Dumpable d) {
+ dump(System.out, 0, title, d);
+ }
+
public static void dump(Dumpable d) {
dump(System.out, 0, d);
}
!
public static void dump(PrintStream out, Dumpable d) {
dump(out, 0, d);
***************
*** 119,122 ****
--- 123,134 ----
}
+ public static void dump(
+ PrintStream out,
+ int depth,
+ String title,
+ Dumpable d) {
+ dump(new PrintWriter(out, true), depth, title, d);
+ }
+
public static void dump(PrintWriter out, Dumpable d) {
dump(out, 0, d);
***************
*** 124,127 ****
--- 136,148 ----
public static void dump(PrintWriter out, int depth, Dumpable d) {
+ d.dump(out, depth);
+ }
+
+ public static void dump(
+ PrintWriter out,
+ int depth,
+ String title,
+ Dumpable d) {
+ out.println(title);
d.dump(out, depth);
}
-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en