summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Hudson <nick.hudson@isode.com>2012-01-16 12:14:02 (GMT)
committerKevin Smith <git@kismith.co.uk>2012-01-18 11:03:48 (GMT)
commit6665e38f97f95dd6e0fc574dc65a1be37b2b101f (patch)
treea780670c4a15abca042a0c75fa172b40b1808a22 /src/com/isode/stroke/elements/IQ.java
parent839db071f46d083b86996f514f5fe0f2d6aee80a (diff)
downloadstroke-6665e38f97f95dd6e0fc574dc65a1be37b2b101f.zip
stroke-6665e38f97f95dd6e0fc574dc65a1be37b2b101f.tar.bz2
Add toString to some more classes
Also made "Stanza" be an abstract class and had its ".toString()" include the name of the subclass which is involved, so that the subclasses don't have to do that themselves. Also added null check to existing HostAddress.toString() method Also fixed Remko copyright in Connector class Test-information: Stuff is displayed as expected in debugger.
Diffstat (limited to 'src/com/isode/stroke/elements/IQ.java')
-rw-r--r--src/com/isode/stroke/elements/IQ.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/com/isode/stroke/elements/IQ.java b/src/com/isode/stroke/elements/IQ.java
index 098dfaf..78d4d6a 100644
--- a/src/com/isode/stroke/elements/IQ.java
+++ b/src/com/isode/stroke/elements/IQ.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, Isode Limited, London, England.
+ * Copyright (c) 2010-2012, Isode Limited, London, England.
* All rights reserved.
*/
/*
@@ -11,7 +11,7 @@ package com.isode.stroke.elements;
import com.isode.stroke.jid.JID;
public class IQ extends Stanza {
- public enum Type {Get, Set, Result, Error};
+ public enum Type {Get, Set, Result, Error}
private Type type_;
@@ -55,4 +55,8 @@ public class IQ extends Stanza {
return iq;
}
+ @Override
+ public String toString() {
+ return super.toString() + " Type=" + type_;
+ }
}