diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2005-10-25 10:19:51 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2005-10-25 10:19:51 +0000 |
commit | 2143d4beac42eb77ec27932bb878658f64e17148 (patch) | |
tree | 19f716eeb4be93154c556622e5f55d72ce4f6ef4 /scripting | |
parent | INTEGRATION: CWS morejava (1.6.88); FILE MERGED (diff) | |
download | core-2143d4beac42eb77ec27932bb878658f64e17148.tar.gz core-2143d4beac42eb77ec27932bb878658f64e17148.zip |
INTEGRATION: CWS morejava (1.10.70); FILE MERGED
2005/08/26 13:59:08 fridrich_strba 1.10.70.1: Issue number:
Submitted by: kendy
Reviewed by: fridrich_strba
Allow compiling with jdk1.5.0 ("enum" is reserved word in java 5)
Diffstat (limited to 'scripting')
-rw-r--r-- | scripting/java/org/openoffice/idesupport/SVersionRCFile.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/scripting/java/org/openoffice/idesupport/SVersionRCFile.java b/scripting/java/org/openoffice/idesupport/SVersionRCFile.java index 12aa8d8a7287..40a33bf4000d 100644 --- a/scripting/java/org/openoffice/idesupport/SVersionRCFile.java +++ b/scripting/java/org/openoffice/idesupport/SVersionRCFile.java @@ -4,9 +4,9 @@ * * $RCSfile: SVersionRCFile.java,v $ * - * $Revision: 1.11 $ + * $Revision: 1.12 $ * - * last change: $Author: rt $ $Date: 2005-09-09 02:06:28 $ + * last change: $Author: hr $ $Date: 2005-10-25 11:19:51 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -226,18 +226,18 @@ public class SVersionRCFile { else ov = new SVersionRCFile(args[0]); - Enumeration enum; + Enumeration enumer; try { - enum = ov.getVersions(); + enumer = ov.getVersions(); } catch (IOException ioe) { System.err.println("Error getting versions: " + ioe.getMessage()); return; } - while (enum.hasMoreElements()) { - OfficeInstallation oi = (OfficeInstallation)enum.nextElement(); + while (enumer.hasMoreElements()) { + OfficeInstallation oi = (OfficeInstallation)enumer.nextElement(); System.out.println("Name: " + oi.getName() + ", Path: " + oi.getPath() + ", URL: " + oi.getURL()); } |