mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-22 12:02:05 +01:00
Remove erroneous next() from AbstractJsonExtensionProvider
Fixes SMACK-695.
This commit is contained in:
parent
6b7f69b42f
commit
b1e4884fbb
2 changed files with 3 additions and 3 deletions
|
@ -301,7 +301,8 @@ public class PacketParserUtils {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the textual content of an element as String.
|
* Returns the textual content of an element as String. After this method returns the parser
|
||||||
|
* position will be END_TAG, following the established pull parser calling convention.
|
||||||
* <p>
|
* <p>
|
||||||
* The parser must be positioned on a START_TAG of an element which MUST NOT contain Mixed
|
* The parser must be positioned on a START_TAG of an element which MUST NOT contain Mixed
|
||||||
* Content (as defined in XML 3.2.2), or else an XmlPullParserException will be thrown.
|
* Content (as defined in XML 3.2.2), or else an XmlPullParserException will be thrown.
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* Copyright © 2014 Florian Schmaus
|
* Copyright © 2014-2015 Florian Schmaus
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -31,7 +31,6 @@ public abstract class AbstractJsonExtensionProvider extends ExtensionElementProv
|
||||||
public AbstractJsonPacketExtension parse(XmlPullParser parser, int initialDepth) throws XmlPullParserException,
|
public AbstractJsonPacketExtension parse(XmlPullParser parser, int initialDepth) throws XmlPullParserException,
|
||||||
IOException, SmackException {
|
IOException, SmackException {
|
||||||
String json = PacketParserUtils.parseElementText(parser);
|
String json = PacketParserUtils.parseElementText(parser);
|
||||||
parser.next();
|
|
||||||
return from(json);
|
return from(json);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue