java: reduce scope, make some methods private

found by UCDetector

Change-Id: Ib1425edde146193a65c242dc159b7e3fbf0e4a2e
This commit is contained in:
Noel Grandin
2014-08-08 12:44:57 +02:00
parent 70f56bc22f
commit 68cd011c90
233 changed files with 721 additions and 721 deletions

View File

@@ -75,7 +75,7 @@ public class ParcelDescriptor {
// returns the ParcelDescriptor in the corresponding directory
// returns null if no ParcelDescriptor is found in the directory
public static synchronized ParcelDescriptor
private static synchronized ParcelDescriptor
getParcelDescriptor(File parent) {
File path = new File(parent, PARCEL_DESCRIPTOR_NAME);
@@ -166,7 +166,7 @@ public class ParcelDescriptor {
initLanguageProperties();
}
public void write(File file) throws IOException {
private void write(File file) throws IOException {
FileOutputStream fos = new FileOutputStream(file);
XMLParserFactory.getParser().write(document, fos);
fos.close();
@@ -297,7 +297,7 @@ public class ParcelDescriptor {
addScriptEntry(scripts.next());
}
public String getLanguageProperty(String name) {
private String getLanguageProperty(String name) {
return languagedepprops.get(name);
}

View File

@@ -41,7 +41,7 @@ public class ClassLoaderFactory
}
return getURLClassLoader( parent, classPath );
}
public static ClassLoader getURLClassLoader( ClassLoader parent, URL[] classpath)
private static ClassLoader getURLClassLoader( ClassLoader parent, URL[] classpath)
{
return new URLClassLoader( classpath, parent);
}

View File

@@ -122,7 +122,7 @@ public class PlainSourceView extends JScrollPane
/* If the number of lines in the JTextArea has changed then update the
GlyphGutter */
public void doChanged() {
private void doChanged() {
isModified = true;
if (linecount != ta.getLineCount()) {