diff options
author | Noel Grandin <noel@peralex.com> | 2014-08-08 11:14:08 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-08-12 12:16:37 +0200 |
commit | e701b3f732fa7f70cb273183e9ae8dbfd840f5e4 (patch) | |
tree | 8bcf687f10ccd70be0882360d2155378993cef26 /scripting/java/org | |
parent | cc4d76145f7b92992b885cdc58b4534e8c024ac5 (diff) |
java: reduce scope, make constants private
found by UCDetector
Change-Id: Ide9975e361ed17ac8cdcbe67ba74c563a9392d57
Diffstat (limited to 'scripting/java/org')
3 files changed, 3 insertions, 3 deletions
diff --git a/scripting/java/org/openoffice/idesupport/OfficeInstallation.java b/scripting/java/org/openoffice/idesupport/OfficeInstallation.java index abc08bf185ed..d8b337fb3ea1 100644 --- a/scripting/java/org/openoffice/idesupport/OfficeInstallation.java +++ b/scripting/java/org/openoffice/idesupport/OfficeInstallation.java @@ -27,7 +27,7 @@ public class OfficeInstallation implements java.io.Serializable { private String url; private boolean hasFW = false; - public static final String FILE_URL_PREFIX = SVersionRCFile.FILE_URL_PREFIX; + private static final String FILE_URL_PREFIX = SVersionRCFile.FILE_URL_PREFIX; public OfficeInstallation(String path) { this(path, path); diff --git a/scripting/java/org/openoffice/idesupport/SVersionRCFile.java b/scripting/java/org/openoffice/idesupport/SVersionRCFile.java index 94389e53e395..42cd8f0fa16b 100644 --- a/scripting/java/org/openoffice/idesupport/SVersionRCFile.java +++ b/scripting/java/org/openoffice/idesupport/SVersionRCFile.java @@ -30,7 +30,7 @@ import java.util.StringTokenizer; public class SVersionRCFile { - public static final String DEFAULT_NAME = + private static final String DEFAULT_NAME = System.getProperty("os.name").startsWith("Windows") == true ? System.getProperty("user.home") + File.separator + "Application Data" + File.separator + "sversion.ini" : diff --git a/scripting/java/org/openoffice/idesupport/zip/ParcelZipper.java b/scripting/java/org/openoffice/idesupport/zip/ParcelZipper.java index c231a3152863..36380a2b6c06 100644 --- a/scripting/java/org/openoffice/idesupport/zip/ParcelZipper.java +++ b/scripting/java/org/openoffice/idesupport/zip/ParcelZipper.java @@ -29,7 +29,7 @@ import org.openoffice.idesupport.xml.Manifest; public class ParcelZipper { public static final String PARCEL_PREFIX_DIR = "Scripts/"; - public static final String PARCEL_EXTENSION = "sxp"; + private static final String PARCEL_EXTENSION = "sxp"; public static final String CONTENTS_DIRNAME = "Contents"; public static final String PARCEL_DESCRIPTOR_XML = "parcel-descriptor.xml"; |