From ac5508ae376742aa7ac42c7f86e3079e60c2e660 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Wed, 4 Apr 2018 16:41:49 +0200 Subject: [PATCH] Remove deprecated CustomSmackConfiguration on intialization --- .../smack/SmackInitialization.java | 22 ------------------- 1 file changed, 22 deletions(-) diff --git a/smack-core/src/main/java/org/jivesoftware/smack/SmackInitialization.java b/smack-core/src/main/java/org/jivesoftware/smack/SmackInitialization.java index 1b9d18d21..bd6e31c3b 100644 --- a/smack-core/src/main/java/org/jivesoftware/smack/SmackInitialization.java +++ b/smack-core/src/main/java/org/jivesoftware/smack/SmackInitialization.java @@ -21,7 +21,6 @@ import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; -import java.lang.reflect.Field; import java.util.Collection; import java.util.List; import java.util.logging.Level; @@ -86,27 +85,6 @@ public final class SmackInitialization { throw new IllegalStateException(e); } - try { - Class c = Class.forName("org.jivesoftware.smack.CustomSmackConfiguration"); - Field f = c.getField("DISABLED_SMACK_CLASSES"); - String[] sa = (String[]) f.get(null); - if (sa != null) { - LOGGER.warning("Using CustomSmackConfig is deprecated and will be removed in a future release"); - for (String s : sa) - SmackConfiguration.disabledSmackClasses.add(s); - } - } - catch (ClassNotFoundException e1) { - } - catch (NoSuchFieldException e) { - } - catch (SecurityException e) { - } - catch (IllegalArgumentException e) { - } - catch (IllegalAccessException e) { - } - InputStream configFileStream; try { configFileStream = FileUtils.getStreamForClasspathFile(DEFAULT_CONFIG_FILE, null);