1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-30 07:52:06 +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. // Get an array of class loaders to try loading the providers files from.
ClassLoader[] classLoaders = getClassLoaders(); ClassLoader[] classLoaders = getClassLoaders();
for (int i = 0; i < classLoaders.length; i++) { for (int i = 0; i < classLoaders.length; i++) {
Enumeration enum = classLoaders[i].getResources("META-INF/smack-config.xml"); Enumeration configEnum = classLoaders[i].getResources("META-INF/smack-config.xml");
while (enum.hasMoreElements()) { while (configEnum.hasMoreElements()) {
URL url = (URL) enum.nextElement(); URL url = (URL) configEnum.nextElement();
InputStream systemStream = null; InputStream systemStream = null;
try { try {
systemStream = url.openStream(); 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. // Get an array of class loaders to try loading the providers files from.
ClassLoader[] classLoaders = getClassLoaders(); ClassLoader[] classLoaders = getClassLoaders();
for (int i=0; i<classLoaders.length; i++) { for (int i=0; i<classLoaders.length; i++) {
Enumeration enum = classLoaders[i].getResources( Enumeration providerEnum = classLoaders[i].getResources(
"META-INF/smack.providers"); "META-INF/smack.providers");
while (enum.hasMoreElements()) { while (providerEnum.hasMoreElements()) {
URL url = (URL)enum.nextElement(); URL url = (URL)providerEnum.nextElement();
java.io.InputStream providerStream = null; java.io.InputStream providerStream = null;
try { try {
providerStream = url.openStream(); providerStream = url.openStream();