retrieve Extensions not Elements from extension map

This commit is contained in:
Daniel Gultsch 2023-01-20 08:07:27 +01:00
parent 1e6aed759b
commit de06bfb8f0
No known key found for this signature in database
GPG key ID: F43D18AD2A0982C2

View file

@ -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<? extends Element> clazz = of(name, namespace);
final Class<? extends Extension> clazz = of(name, namespace);
if (clazz == null) {
return new Element(name, namespace);
}
@ -30,7 +30,7 @@ public final class ExtensionFactory {
}
}
private static Class<? extends Element> of(final String name, final String namespace) {
private static Class<? extends Extension> of(final String name, final String namespace) {
return Extensions.EXTENSION_CLASS_MAP.get(new Id(name, namespace));
}