mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-27 00:32:07 +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:
parent
06ea3eb0f7
commit
c34861903d
1 changed files with 3 additions and 3 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue