1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-12-23 13:07:59 +01:00

Renamed variable enum to other name for 1.5 compatibility.

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2415 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Gaston Dombiak 2004-11-11 03:07:44 +00:00 committed by gaston
parent dbc27de285
commit 606f2bf3f4

View file

@ -256,17 +256,17 @@ public abstract class SmackTestCase extends TestCase {
try {
boolean found = false;
// Try to load the configutation from an XML file specific for this test case
Enumeration enum =
Enumeration resources =
ClassLoader.getSystemClassLoader().getResources(getConfigurationFilename());
while (enum.hasMoreElements()) {
found = parseURL((URL) enum.nextElement());
while (resources.hasMoreElements()) {
found = parseURL((URL) resources.nextElement());
}
// If none was found then try to load the configuration from the default configuration
// file (i.e. "config/test-case.xml")
if (!found) {
enum = ClassLoader.getSystemClassLoader().getResources("config/test-case.xml");
while (enum.hasMoreElements()) {
found = parseURL((URL) enum.nextElement());
resources = ClassLoader.getSystemClassLoader().getResources("config/test-case.xml");
while (resources.hasMoreElements()) {
found = parseURL((URL) resources.nextElement());
}
}
if (!found) {