mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-21 22:02:06 +01:00
Remove deprecated CustomSmackConfiguration on intialization
This commit is contained in:
parent
6a42d5baff
commit
ac5508ae37
1 changed files with 0 additions and 22 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue