mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-12-22 20:47:57 +01:00
Use XmlEnvironment.EMPTY instead of null in PacketParserUtils
This commit is contained in:
parent
9b186f2541
commit
86c28e9d13
1 changed files with 3 additions and 3 deletions
|
@ -91,7 +91,7 @@ public class PacketParserUtils {
|
|||
|
||||
@SuppressWarnings("unchecked")
|
||||
public static <S extends Stanza> S parseStanza(String stanza) throws XmlPullParserException, SmackParsingException, IOException {
|
||||
return (S) parseStanza(getParserFor(stanza), null);
|
||||
return (S) parseStanza(getParserFor(stanza), XmlEnvironment.EMPTY);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -122,7 +122,7 @@ public class PacketParserUtils {
|
|||
}
|
||||
|
||||
public static Message parseMessage(XmlPullParser parser) throws XmlPullParserException, IOException, SmackParsingException {
|
||||
return parseMessage(parser, null);
|
||||
return parseMessage(parser, XmlEnvironment.EMPTY);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -409,7 +409,7 @@ public class PacketParserUtils {
|
|||
}
|
||||
|
||||
public static Presence parsePresence(XmlPullParser parser) throws XmlPullParserException, IOException, SmackParsingException {
|
||||
return parsePresence(parser, null);
|
||||
return parsePresence(parser, XmlEnvironment.EMPTY);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue