1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-22 14:22:05 +01:00

Removed enum variable.

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2398 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Derek DeMoro 2004-10-29 15:09:04 +00:00 committed by derek
parent a654adc588
commit f206a82119
2 changed files with 6 additions and 6 deletions

View file

@ -95,9 +95,9 @@ public final class SmackConfiguration {
// Get an array of class loaders to try loading the providers files from.
ClassLoader[] classLoaders = getClassLoaders();
for (int i = 0; i < classLoaders.length; i++) {
Enumeration enum = classLoaders[i].getResources("META-INF/smack-config.xml");
while (enum.hasMoreElements()) {
URL url = (URL) enum.nextElement();
Enumeration configEnum = classLoaders[i].getResources("META-INF/smack-config.xml");
while (configEnum.hasMoreElements()) {
URL url = (URL) configEnum.nextElement();
InputStream systemStream = null;
try {
systemStream = url.openStream();

View file

@ -149,10 +149,10 @@ public class ProviderManager {
// Get an array of class loaders to try loading the providers files from.
ClassLoader[] classLoaders = getClassLoaders();
for (int i=0; i<classLoaders.length; i++) {
Enumeration enum = classLoaders[i].getResources(
Enumeration providerEnum = classLoaders[i].getResources(
"META-INF/smack.providers");
while (enum.hasMoreElements()) {
URL url = (URL)enum.nextElement();
while (providerEnum.hasMoreElements()) {
URL url = (URL)providerEnum.nextElement();
java.io.InputStream providerStream = null;
try {
providerStream = url.openStream();