java: reduce scope, make some methods private
found by UCDetector Change-Id: Ib1425edde146193a65c242dc159b7e3fbf0e4a2e
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
@@ -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);
|
||||
}
|
||||
|
@@ -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()) {
|
||||
|
Reference in New Issue
Block a user