1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2025-12-09 22:51:07 +01:00

Add a test to ensure all Conditions have a Type mapping

This commit is contained in:
Ingo Bauersachs 2017-08-05 17:06:13 +02:00
parent 199311eda1
commit 25114b3fc1
2 changed files with 36 additions and 1 deletions

View file

@ -70,7 +70,7 @@ public class XMPPError extends AbstractError {
public static final String ERROR = "error";
private static final Logger LOGGER = Logger.getLogger(XMPPError.class.getName());
private static final Map<Condition, Type> CONDITION_TO_TYPE = new HashMap<Condition, Type>();
static final Map<Condition, Type> CONDITION_TO_TYPE = new HashMap<Condition, Type>();
static {
CONDITION_TO_TYPE.put(Condition.bad_request, Type.MODIFY);