java: reduce scope, make fields private

found by UCDetector

Change-Id: I7f97e15667159cf8ee776e8f32fdcdec8ec00ed6
This commit is contained in:
Noel Grandin
2014-08-08 11:36:04 +02:00
parent 14d1a11ec4
commit da677dfd59
228 changed files with 894 additions and 894 deletions

View File

@ -57,10 +57,10 @@ public class ParcelBrowseNode extends PropertySet
private Collection<XBrowseNode> browsenodes;
private ParcelContainer container;
private Parcel parcel;
public boolean deletable = true;
public boolean editable = false;
public boolean creatable = false;
public boolean renamable = true;
private boolean deletable = true;
private boolean editable = false;
private boolean creatable = false;
private boolean renamable = true;
public ParcelBrowseNode( ScriptProvider provider, ParcelContainer container, String parcelName ) {
this.provider = provider;

View File

@ -46,12 +46,12 @@ import javax.swing.JOptionPane;
public class ProviderBrowseNode extends PropertySet
implements XBrowseNode, XInvocation
{
protected ScriptProvider provider;
protected Collection<XBrowseNode> browsenodes;
protected String name;
private ScriptProvider provider;
private Collection<XBrowseNode> browsenodes;
private String name;
protected ParcelContainer container;
protected Parcel parcel;
protected XComponentContext m_xCtx;
private XComponentContext m_xCtx;
public boolean deletable = true;
public boolean creatable = true;

View File

@ -52,11 +52,11 @@ public class ScriptBrowseNode extends PropertySet
private Parcel parent;
private String name;
public String uri;
public String description;
public boolean editable = false;
public boolean deletable = false;
public boolean renamable = false;
private String uri;
private String description;
private boolean editable = false;
private boolean deletable = false;
private boolean renamable = false;
public ScriptBrowseNode( ScriptProvider provider, Parcel parent,
String name )

View File

@ -30,8 +30,8 @@ import java.io.*;
public class Parcel implements XNameContainer
{
protected ParcelDescriptor m_descriptor;
protected String name;
private ParcelDescriptor m_descriptor;
private String name;
protected ParcelContainer parent;
protected XSimpleFileAccess m_xSFA;
public Parcel( XSimpleFileAccess xSFA, ParcelContainer parent, ParcelDescriptor desc, String parcelName )

View File

@ -47,7 +47,7 @@ public class ParcelContainer implements XNameAccess
{
protected String language;
protected String containerUrl;
protected Collection<Parcel> parcels = new ArrayList<Parcel>(10);
private Collection<Parcel> parcels = new ArrayList<Parcel>(10);
static protected XSimpleFileAccess m_xSFA;
protected XComponentContext m_xCtx;
private ParcelContainer parent = null;

View File

@ -40,8 +40,8 @@ public class UnoPkgContainer extends ParcelContainer
{
private Map<String,ParcelContainer> registeredPackages = new HashMap<String,ParcelContainer>();
protected String extensionDb;
protected String extensionRepository;
private String extensionDb;
private String extensionRepository;
public UnoPkgContainer( XComponentContext xCtx, String locationURL,
String _extensionDb, String _extensionRepository, String language ) throws com.sun.star.lang.IllegalArgumentException, com.sun.star.lang.WrappedTargetException

View File

@ -37,7 +37,7 @@ public class UCBStreamHandler extends URLStreamHandler {
private XSimpleFileAccess m_xSimpleFileAccess = null;
private HashMap<String,InputStream> m_jarStreamMap = new HashMap<String,InputStream>(12);
public static String m_ucbscheme;
private static String m_ucbscheme;
public UCBStreamHandler( String scheme, XSimpleFileAccess xSFA )
{

View File

@ -24,7 +24,7 @@ import java.io.IOException;
public class XInputStreamImpl implements XInputStream
{
InputStream is;
private InputStream is;
public XInputStreamImpl( InputStream is )
{
this.is = is;

View File

@ -21,7 +21,7 @@ import com.sun.star.io.XOutputStream;
public class XOutputStreamWrapper extends OutputStream {
XOutputStream m_xOutputStream;
private XOutputStream m_xOutputStream;
public XOutputStreamWrapper(XOutputStream xOs ) {
this.m_xOutputStream = xOs;
}

View File

@ -27,7 +27,7 @@ import com.sun.star.uno.IQueryInterface;
public class PathUtils {
public static String FILE_URL_PREFIX;
private static String FILE_URL_PREFIX;
public static String BOOTSTRAP_NAME;
private static boolean m_windows = false;

View File

@ -40,12 +40,12 @@ public class ScriptContext extends PropertySet implements XScriptContext
private final static String DOC_URI = "SCRIPTING_DOC_URI";
public XModel m_xModel = null;
public XScriptInvocationContext m_xInvocationContext = null;
private XModel m_xModel = null;
private XScriptInvocationContext m_xInvocationContext = null;
public String m_sDocURI = null;
public XDesktop m_xDeskTop = null;
private XDesktop m_xDeskTop = null;
public Integer m_iStorageID = null;
public XComponentContext m_xComponentContext = null;
private XComponentContext m_xComponentContext = null;
private ScriptContext( XComponentContext xmComponentContext,
XDesktop xDesktop, XModel xModel, XScriptInvocationContext xInvocContext)

View File

@ -92,10 +92,10 @@ public abstract class ScriptProvider
protected String language;
protected XComponentContext m_xContext;
protected XMultiComponentFactory m_xMultiComponentFactory;
private XMultiComponentFactory m_xMultiComponentFactory;
protected XModel m_xModel;
protected XScriptInvocationContext m_xInvocContext;
protected ParcelContainer m_container;
private ParcelContainer m_container;
// proxies to helper objects which implement interfaces
private XPropertySet m_xPropertySetProxy;

View File

@ -325,7 +325,7 @@ public class ScriptEditorForJavaScript implements ScriptEditor
class closeHandler implements Runnable
{
URL url;
private URL url;
private closeHandler( URL url )
{
this.url = url;