Kaydet (Commit) 581d1e35 authored tarafından Noel Grandin's avatar Noel Grandin

java: reduce visibility of some methods and fields

found by UCDetector

Change-Id: I0a0a00d1fae1fed2e6aef198b7a1482d7e7e29f0
üst 68d87e98
......@@ -100,8 +100,8 @@ public class TestCacheSize {
private int deleteWhileInsertInterval = 10000;
// size of the tables used in test
int bigrows = 10000;
int smallrows = 0xfff;
private int bigrows = 10000;
private int smallrows = 0xfff;
// if the extra table needs to be created and filled up
private boolean multikeytable = false;
......
......@@ -1624,7 +1624,7 @@ XPropertiesChangeListener
int nChangeCalled;
int nPropertiesChange;
int nVetoCalled;
int nDisposingCalled;
private int nDisposingCalled;
boolean bVeto= false;
PropertyChangeEvent evt;
PropertyChangeEvent[] arEvt;
......
......@@ -134,7 +134,7 @@ public class Assurance
assure(msg, false, cont);
}
public class AssureException extends RuntimeException {
public static class AssureException extends RuntimeException {
private AssureException(String msg) {
super(msg);
......
......@@ -25,7 +25,7 @@ import org.jfree.report.flow.layoutprocessor.LayoutController;
*
* @since 22.03.2007
*/
public interface OfficeRepeatingStructureLayoutController extends LayoutController
interface OfficeRepeatingStructureLayoutController extends LayoutController
{
boolean isNormalFlowProcessing();
......
package complex.olesimplestorage;
public interface OLESimpleStorageTest {
interface OLESimpleStorageTest {
boolean test();
}
......@@ -18,6 +18,6 @@
package complex.passwordcontainer;
public interface PasswordContainerTest {
interface PasswordContainerTest {
boolean test();
}
......@@ -50,7 +50,7 @@ public class SimpleOffice
{
private XDesktop mxDesktop = null;
private OfficeConnection aConnection;
int mnPortNumber;
private int mnPortNumber;
public SimpleOffice (int nPortNumber)
{
......
......@@ -2897,7 +2897,7 @@ public class DOMTest
}
class MockNodeMap implements XNamedNodeMap
{
MockAttr[] m_attributes;
private MockAttr[] m_attributes;
MockNodeMap(MockAttr[] attrs) { m_attributes = attrs; }
......@@ -2932,7 +2932,7 @@ public class DOMTest
}
class MockElement extends MockNode implements XElement
{
MockAttr[] m_attributes;
private MockAttr[] m_attributes;
MockElement(String name, MockAttr[] attrs) {
m_localname = name; m_attributes = attrs;
......
......@@ -27,7 +27,7 @@ public class PlaceholderTextElement extends TextElement
{
private String hint;
String placeHolderText;
private String placeHolderText;
private XMultiServiceFactory xmsf;
public PlaceholderTextElement(XTextRange textRange, String placeHolderText_, String hint_, XMultiServiceFactory xmsf_)
......
......@@ -61,8 +61,8 @@ public class CommandMetaData extends DBMetaData
private int CommandType;
private String Command;
private boolean bCatalogAtStart = true;
String sCatalogSep = PropertyNames.EMPTY_STRING;
String sIdentifierQuote = PropertyNames.EMPTY_STRING;
private String sCatalogSep = PropertyNames.EMPTY_STRING;
private String sIdentifierQuote = PropertyNames.EMPTY_STRING;
private boolean bCommandComposerAttributesalreadyRetrieved = false;
public CommandMetaData(XMultiServiceFactory xMSF)
......
......@@ -44,7 +44,7 @@ public class Shape
private Size aSize;
protected XControlShape xControlShape;
private XMultiServiceFactory xMSF;
public XShapes xShapes;
XShapes xShapes;
public Shape(FormHandler _oFormHandler, Point _aPoint, Size _aSize)
{
......
......@@ -40,7 +40,7 @@ public class TimeStampControl extends DatabaseControl
private double nreldatewidth;
private double nreltimewidth;
private int nDBWidth;
XShape xShapeGroup;
private XShape xShapeGroup;
public TimeStampControl(Resource _oResource, FormHandler _oFormHandler, XNameContainer _xFormName, String _curFieldName, Point _aPoint)
{
......
......@@ -33,7 +33,7 @@ import java.util.logging.Logger;
public class CallReportWizard
{
static boolean bWizardstartedalready;
private static boolean bWizardstartedalready;
/** Gives a factory for creating the service.
* This method is called by the <code>JavaLoader</code>
......
......@@ -32,11 +32,11 @@ import com.sun.star.wizards.text.ViewHandler;
public class RecordTable
{
public XNamed xTableName;
public XCellRange xCellRange;
XNamed xTableName;
XCellRange xCellRange;
public XTextTable xTextTable;
private TextTableHandler oTextTableHandler;
public XTableColumns xTableColumns;
XTableColumns xTableColumns;
public RecordTable(TextTableHandler _oTextTableHandler)
{
......
......@@ -43,12 +43,12 @@ public class ReportLayouter
private static final int SOLAYOUTLST = 32;
private XListBox xContentListBox;
private XListBox xLayoutListBox;
int iOldContentPos;
int iOldLayoutPos;
private int iOldContentPos;
private int iOldLayoutPos;
private IReportDocument CurReportDocument;
private String[][] LayoutFiles;
private String[][] ContentFiles;
Object aOrientationImage;
private Object aOrientationImage;
private final XMultiServiceFactory m_xMSF;
private XTextRange trTitleconst, trAuthorconst, trDateconst, trPageconst;
private TextElement teTitleconst, teAuthorconst, teDateconst, tePageconst;
......
......@@ -49,8 +49,8 @@ public class FieldFormatter implements XItemListener
private XButton btnminus;
private XButton btnShiftUp;
private XButton btnShiftDown;
short curtabindex;
String suntitled;
private short curtabindex;
private String suntitled;
private Integer IFieldFormatStep;
public FieldFormatter(TableWizard _CurUnoDialog)
......
......@@ -44,12 +44,12 @@ public class TableWizard extends DatabaseObjectWizard implements XTextListener
private ScenarioSelector curScenarioSelector;
private FieldFormatter curFieldFormatter;
private PrimaryKeyHandler curPrimaryKeyHandler;
public HashMap<String, FieldDescription> fielditems;
HashMap<String, FieldDescription> fielditems;
int wizardmode;
String tablename;
String serrToManyFields;
String serrTableNameexists;
String scomposedtablename;
private String tablename;
private String serrToManyFields;
private String serrTableNameexists;
private String scomposedtablename;
private TableDescriptor curTableDescriptor;
public static final int SOMAINPAGE = 1;
public static final int SOFIELDSFORMATPAGE = 2;
......
......@@ -99,9 +99,9 @@ public class FilterComponent
private static final int SO_SECONDBOOLFIELDNAME = 256 + 2;
private static final int SO_THIRDBOOLFIELDNAME = 256 + 3;
private static final int SO_FOURTHBOOLFIELDNAME = 256 + 4;
int SOI_MATCHALL = 0;
int SOI_MATCHANY = 1;
int curHelpID;
private int SOI_MATCHALL = 0;
private int SOI_MATCHANY = 1;
private int curHelpID;
class ItemListenerImpl implements com.sun.star.awt.XItemListener
{
......
......@@ -43,7 +43,7 @@ public class PeerConfig implements XWindowListener
oUnoDialog.xWindow.addWindowListener(this);
}
class PeerTask
private static class PeerTask
{
private XControl xControl;
......@@ -58,7 +58,7 @@ public class PeerConfig implements XWindowListener
}
}
class ControlTask
private static class ControlTask
{
Object oModel;
......@@ -67,7 +67,7 @@ public class PeerConfig implements XWindowListener
}
class ImageUrlTask
private static class ImageUrlTask
{
Object oModel;
......
......@@ -35,9 +35,9 @@ public class UnoDialog
{
public XMultiServiceFactory xMSF;
public XMultiServiceFactory MSFDialogModel;
XMultiServiceFactory MSFDialogModel;
private XNameContainer xDlgNames;
public XControlContainer xDlgContainer;
XControlContainer xDlgContainer;
private XNameAccess m_xDlgNameAccess;
public XControl xControl;
public XDialog xDialog;
......
......@@ -152,7 +152,7 @@ public abstract class DataAware {
* using JavaBeans properties reflection, and DataAwareFields classes
* which implement different member types.
*/
public interface Value {
interface Value {
/**
* gets a value from the given object.
* @param target the object to get the value from.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment