mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-23 04:22: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 {
|
try {
|
||||||
boolean found = false;
|
boolean found = false;
|
||||||
// Try to load the configutation from an XML file specific for this test case
|
// Try to load the configutation from an XML file specific for this test case
|
||||||
Enumeration enum =
|
Enumeration resources =
|
||||||
ClassLoader.getSystemClassLoader().getResources(getConfigurationFilename());
|
ClassLoader.getSystemClassLoader().getResources(getConfigurationFilename());
|
||||||
while (enum.hasMoreElements()) {
|
while (resources.hasMoreElements()) {
|
||||||
found = parseURL((URL) enum.nextElement());
|
found = parseURL((URL) resources.nextElement());
|
||||||
}
|
}
|
||||||
// If none was found then try to load the configuration from the default configuration
|
// If none was found then try to load the configuration from the default configuration
|
||||||
// file (i.e. "config/test-case.xml")
|
// file (i.e. "config/test-case.xml")
|
||||||
if (!found) {
|
if (!found) {
|
||||||
enum = ClassLoader.getSystemClassLoader().getResources("config/test-case.xml");
|
resources = ClassLoader.getSystemClassLoader().getResources("config/test-case.xml");
|
||||||
while (enum.hasMoreElements()) {
|
while (resources.hasMoreElements()) {
|
||||||
found = parseURL((URL) enum.nextElement());
|
found = parseURL((URL) resources.nextElement());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!found) {
|
if (!found) {
|
||||||
|
|
Loading…
Reference in a new issue