1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-26 22:12:05 +01:00

1. Adds class and methods comments

2. Fixes parsing errors (#getText was replaced with #nextText)


git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2276 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Gaston Dombiak 2004-04-05 16:24:44 +00:00 committed by gdombiak
parent 06ea3eb0f7
commit c34861903d

View file

@ -59,7 +59,7 @@ import org.jivesoftware.smackx.packet.MUCOwner;
import org.xmlpull.v1.XmlPullParser;
/**
* Represents .....
* The MUCOwnerProvider parses MUCOwner packets. (@see MUCOwner)
*
* @author Gaston Dombiak
*/
@ -109,7 +109,7 @@ public class MUCOwnerProvider implements IQProvider {
item.setActor(parser.getAttributeValue("", "jid"));
}
if (parser.getName().equals("reason")) {
item.setReason(parser.getText());
item.setReason(parser.nextText());
}
}
else if (eventType == XmlPullParser.END_TAG) {
@ -129,7 +129,7 @@ public class MUCOwnerProvider implements IQProvider {
int eventType = parser.next();
if (eventType == XmlPullParser.START_TAG) {
if (parser.getName().equals("reason")) {
destroy.setReason(parser.getText());
destroy.setReason(parser.nextText());
}
}
else if (eventType == XmlPullParser.END_TAG) {