From de06bfb8f0e768c4cb7ce8f94e5d2bfbebb3ad01 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Fri, 20 Jan 2023 08:07:27 +0100 Subject: [PATCH] retrieve Extensions not Elements from extension map --- .../java/im/conversations/android/xmpp/ExtensionFactory.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/im/conversations/android/xmpp/ExtensionFactory.java b/src/main/java/im/conversations/android/xmpp/ExtensionFactory.java index 7695aed29..6a0c1d697 100644 --- a/src/main/java/im/conversations/android/xmpp/ExtensionFactory.java +++ b/src/main/java/im/conversations/android/xmpp/ExtensionFactory.java @@ -9,7 +9,7 @@ import java.lang.reflect.InvocationTargetException; public final class ExtensionFactory { public static Element create(final String name, final String namespace) { - final Class clazz = of(name, namespace); + final Class clazz = of(name, namespace); if (clazz == null) { return new Element(name, namespace); } @@ -30,7 +30,7 @@ public final class ExtensionFactory { } } - private static Class of(final String name, final String namespace) { + private static Class of(final String name, final String namespace) { return Extensions.EXTENSION_CLASS_MAP.get(new Id(name, namespace)); }