1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2025-12-09 20:41:07 +01:00

Merge branch '4.3'

This commit is contained in:
Florian Schmaus 2018-11-14 15:02:24 +01:00
commit 4358251e89
3 changed files with 23 additions and 5 deletions

View file

@ -385,11 +385,6 @@ public class StanzaError extends AbstractError implements ExtensionElement {
}
public static Condition fromString(String string) {
// Backwards compatibility for older implementations still using RFC 3920. RFC 6120
// changed 'xml-not-well-formed' to 'not-well-formed'.
if ("xml-not-well-formed".equals(string)) {
string = "not-well-formed";
}
string = string.replace('-', '_');
Condition condition = null;
try {

View file

@ -186,6 +186,11 @@ public class StreamError extends AbstractError implements Nonza {
}
public static Condition fromString(String string) {
// Backwards compatibility for older implementations still using RFC 3920. RFC 6120
// changed 'xml-not-well-formed' to 'not-well-formed'.
if ("xml-not-well-formed".equals(string)) {
string = "not-well-formed";
}
string = string.replace('-', '_');
Condition condition = null;
try {