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
1 changed files with 3 additions and 3 deletions

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);
} }
/** /**