diff options
author | Noel Grandin <noel@peralex.com> | 2014-08-08 12:44:57 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-08-13 08:49:23 +0200 |
commit | 68cd011c907d00493bf2bfde531c1e244819596b (patch) | |
tree | 0225318c908b00faaa701a19aaf7aa567c3582a0 /scripting/java/org | |
parent | 70f56bc22fe952c75ec714e05e1bb5296491a36a (diff) |
java: reduce scope, make some methods private
found by UCDetector
Change-Id: Ib1425edde146193a65c242dc159b7e3fbf0e4a2e
Diffstat (limited to 'scripting/java/org')
3 files changed, 4 insertions, 4 deletions
diff --git a/scripting/java/org/openoffice/idesupport/SVersionRCFile.java b/scripting/java/org/openoffice/idesupport/SVersionRCFile.java index 01f2db7858fa..e4854d26f1bb 100644 --- a/scripting/java/org/openoffice/idesupport/SVersionRCFile.java +++ b/scripting/java/org/openoffice/idesupport/SVersionRCFile.java @@ -77,7 +77,7 @@ public class SVersionRCFile { return(createInstance(DEFAULT_NAME)); } - public static SVersionRCFile createInstance(String name) { + private static SVersionRCFile createInstance(String name) { SVersionRCFile result = null; synchronized(SVersionRCFile.class) { diff --git a/scripting/java/org/openoffice/idesupport/xml/Manifest.java b/scripting/java/org/openoffice/idesupport/xml/Manifest.java index b2bf6101f78e..581cadae51d6 100644 --- a/scripting/java/org/openoffice/idesupport/xml/Manifest.java +++ b/scripting/java/org/openoffice/idesupport/xml/Manifest.java @@ -118,7 +118,7 @@ public class Manifest { return result; } - public void write(OutputStream out) throws IOException { + private void write(OutputStream out) throws IOException { XMLParserFactory.getParser().write(document, out); } } diff --git a/scripting/java/org/openoffice/idesupport/zip/ParcelZipper.java b/scripting/java/org/openoffice/idesupport/zip/ParcelZipper.java index 36380a2b6c06..bd5eb48c3f20 100644 --- a/scripting/java/org/openoffice/idesupport/zip/ParcelZipper.java +++ b/scripting/java/org/openoffice/idesupport/zip/ParcelZipper.java @@ -81,7 +81,7 @@ public class ParcelZipper return zipParcel(basedir, targetfile, filter); } - public String zipParcel(File basedir, File targetfile, FileFilter filter) + private String zipParcel(File basedir, File targetfile, FileFilter filter) throws IOException { String realpath, tmppath; @@ -557,7 +557,7 @@ public class ParcelZipper return result; } - public String getParcelLanguage(File file) throws IOException { + private String getParcelLanguage(File file) throws IOException { ZipFile zf = null; ZipEntry ze = null; InputStream is = null; |