1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2025-09-09 09:09:38 +02:00

Rework Bits of Binary implementation

This commit is contained in:
Florian Schmaus 2017-01-03 10:59:56 +01:00
parent c688acaa0f
commit 9328182912
12 changed files with 166 additions and 300 deletions

View file

@ -128,8 +128,9 @@ public class PacketParserUtils {
return parser;
}
public static Stanza parseStanza(String stanza) throws Exception {
return parseStanza(getParserFor(stanza));
@SuppressWarnings("unchecked")
public static <S extends Stanza> S parseStanza(String stanza) throws Exception {
return (S) parseStanza(getParserFor(stanza));
}
/**