1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-25 15:52:06 +01:00

Use XmlEnvironment.EMPTY instead of null in PacketParserUtils

This commit is contained in:
Florian Schmaus 2019-09-12 15:04:07 +02:00
parent 9b186f2541
commit 86c28e9d13

View file

@ -91,7 +91,7 @@ public class PacketParserUtils {
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
public static <S extends Stanza> S parseStanza(String stanza) throws XmlPullParserException, SmackParsingException, IOException { 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 { 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 { public static Presence parsePresence(XmlPullParser parser) throws XmlPullParserException, IOException, SmackParsingException {
return parsePresence(parser, null); return parsePresence(parser, XmlEnvironment.EMPTY);
} }
/** /**