mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-26 22:12:05 +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:
parent
dbc27de285
commit
606f2bf3f4
1 changed files with 6 additions and 6 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue