cid#1327023 to cid#1327077 SIC: Inner class could be made static
Change-Id: I41f89c4feefe4e012d72c663ebb9bbcb4aa7f163
This commit is contained in:
@@ -739,7 +739,7 @@ public class LocalOfficeConnection
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
private class StreamProcessor extends Thread
|
private static class StreamProcessor extends Thread
|
||||||
{
|
{
|
||||||
private final java.io.InputStream m_in;
|
private final java.io.InputStream m_in;
|
||||||
private final java.io.PrintStream m_print;
|
private final java.io.PrintStream m_print;
|
||||||
|
@@ -66,7 +66,7 @@ public class StorageFileAccess implements org.hsqldb.lib.FileAccess{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private class FileSync implements FileAccess.FileSync
|
private static class FileSync implements FileAccess.FileSync
|
||||||
{
|
{
|
||||||
private final NativeOutputStreamHelper os;
|
private final NativeOutputStreamHelper os;
|
||||||
private FileSync(NativeOutputStreamHelper _os)
|
private FileSync(NativeOutputStreamHelper _os)
|
||||||
|
@@ -590,7 +590,7 @@ public class ServiceManager implements XMultiServiceFactory,
|
|||||||
* @see com.sun.star.lang.XServiceInfo
|
* @see com.sun.star.lang.XServiceInfo
|
||||||
* @since UDK1.0
|
* @since UDK1.0
|
||||||
*/
|
*/
|
||||||
class ServiceEnumerationImpl implements XEnumeration {
|
static class ServiceEnumerationImpl implements XEnumeration {
|
||||||
java.util.Iterator<Object> enumeration = null;
|
java.util.Iterator<Object> enumeration = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -60,7 +60,7 @@ public abstract class BaseEvolutionarySolver extends BaseNLPSolver {
|
|||||||
registerProperty(m_enhancedSolverStatus);
|
registerProperty(m_enhancedSolverStatus);
|
||||||
}
|
}
|
||||||
|
|
||||||
private class Variable {
|
private static class Variable {
|
||||||
private final CellMap CellMap;
|
private final CellMap CellMap;
|
||||||
private final int OriginalVariable;
|
private final int OriginalVariable;
|
||||||
private double MinValue;
|
private double MinValue;
|
||||||
|
@@ -185,7 +185,7 @@ public abstract class BaseNLPSolver extends WeakBase
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected class CellMap {
|
protected static class CellMap {
|
||||||
protected int Range;
|
protected int Range;
|
||||||
protected int Col;
|
protected int Col;
|
||||||
protected int Row;
|
protected int Row;
|
||||||
|
@@ -712,7 +712,7 @@ public class OfficeProvider implements AppProvider
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private class OfficeWatcherPing extends Thread
|
private static class OfficeWatcherPing extends Thread
|
||||||
{
|
{
|
||||||
|
|
||||||
private final OfficeWatcher ow;
|
private final OfficeWatcher ow;
|
||||||
|
@@ -625,7 +625,7 @@ public class ProcessHandler
|
|||||||
bUseOutput = false;
|
bUseOutput = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
private class ProcessWatcher extends Thread
|
private static class ProcessWatcher extends Thread
|
||||||
{
|
{
|
||||||
|
|
||||||
private int m_nTimeoutInSec;
|
private int m_nTimeoutInSec;
|
||||||
|
@@ -42,7 +42,7 @@ public class _XButton extends MultiMethodTest {
|
|||||||
/**
|
/**
|
||||||
* Listener implementation which sets flags on appropriate method calls
|
* Listener implementation which sets flags on appropriate method calls
|
||||||
*/
|
*/
|
||||||
protected class TestActionListener implements com.sun.star.awt.XActionListener {
|
protected static class TestActionListener implements com.sun.star.awt.XActionListener {
|
||||||
public boolean disposingCalled = false ;
|
public boolean disposingCalled = false ;
|
||||||
public boolean actionPerformedCalled = false ;
|
public boolean actionPerformedCalled = false ;
|
||||||
|
|
||||||
|
@@ -44,7 +44,7 @@ public class _XCheckBox extends MultiMethodTest {
|
|||||||
/**
|
/**
|
||||||
* Listener implementation which sets flags on appropriate method calls
|
* Listener implementation which sets flags on appropriate method calls
|
||||||
*/
|
*/
|
||||||
protected class TestItemListener implements com.sun.star.awt.XItemListener {
|
protected static class TestItemListener implements com.sun.star.awt.XItemListener {
|
||||||
public boolean disposingCalled = false ;
|
public boolean disposingCalled = false ;
|
||||||
public boolean itemStateChangedCalled = false ;
|
public boolean itemStateChangedCalled = false ;
|
||||||
|
|
||||||
|
@@ -50,7 +50,7 @@ public class _XComboBox extends MultiMethodTest {
|
|||||||
/**
|
/**
|
||||||
* Listener implementation which sets flags on appropriate method calls
|
* Listener implementation which sets flags on appropriate method calls
|
||||||
*/
|
*/
|
||||||
protected class TestActionListener
|
protected static class TestActionListener
|
||||||
implements com.sun.star.awt.XActionListener {
|
implements com.sun.star.awt.XActionListener {
|
||||||
public boolean disposingCalled = false;
|
public boolean disposingCalled = false;
|
||||||
public boolean actionPerformedCalled = false;
|
public boolean actionPerformedCalled = false;
|
||||||
@@ -68,7 +68,7 @@ public class _XComboBox extends MultiMethodTest {
|
|||||||
/**
|
/**
|
||||||
* Listener implementation which sets flags on appropriate method calls
|
* Listener implementation which sets flags on appropriate method calls
|
||||||
*/
|
*/
|
||||||
protected class TestItemListener
|
protected static class TestItemListener
|
||||||
implements com.sun.star.awt.XItemListener {
|
implements com.sun.star.awt.XItemListener {
|
||||||
public boolean disposingCalled = false;
|
public boolean disposingCalled = false;
|
||||||
public boolean itemStateChangedCalled = false;
|
public boolean itemStateChangedCalled = false;
|
||||||
|
@@ -45,7 +45,7 @@ public class _XImageProducer extends MultiMethodTest {
|
|||||||
* Consumer implementation which sets flags on appropriate
|
* Consumer implementation which sets flags on appropriate
|
||||||
* method calls.
|
* method calls.
|
||||||
*/
|
*/
|
||||||
protected class TestImageConsumer implements XImageConsumer {
|
protected static class TestImageConsumer implements XImageConsumer {
|
||||||
PrintWriter log = null ;
|
PrintWriter log = null ;
|
||||||
public boolean initCalled = false ;
|
public boolean initCalled = false ;
|
||||||
public boolean setColorModelCalled = false ;
|
public boolean setColorModelCalled = false ;
|
||||||
|
@@ -61,7 +61,7 @@ public class _XListBox extends MultiMethodTest {
|
|||||||
/**
|
/**
|
||||||
* Listener implementation which sets flags on appropriate method calls
|
* Listener implementation which sets flags on appropriate method calls
|
||||||
*/
|
*/
|
||||||
protected class TestActionListener implements com.sun.star.awt.XActionListener {
|
protected static class TestActionListener implements com.sun.star.awt.XActionListener {
|
||||||
public boolean disposingCalled = false ;
|
public boolean disposingCalled = false ;
|
||||||
public boolean actionPerformedCalled = false ;
|
public boolean actionPerformedCalled = false ;
|
||||||
|
|
||||||
@@ -80,7 +80,7 @@ public class _XListBox extends MultiMethodTest {
|
|||||||
/**
|
/**
|
||||||
* Listener implementation which sets flags on appropriate method calls
|
* Listener implementation which sets flags on appropriate method calls
|
||||||
*/
|
*/
|
||||||
protected class TestItemListener implements com.sun.star.awt.XItemListener {
|
protected static class TestItemListener implements com.sun.star.awt.XItemListener {
|
||||||
public boolean disposingCalled = false ;
|
public boolean disposingCalled = false ;
|
||||||
public boolean itemStateChangedCalled = false ;
|
public boolean itemStateChangedCalled = false ;
|
||||||
|
|
||||||
|
@@ -45,7 +45,7 @@ public class _XRadioButton extends MultiMethodTest {
|
|||||||
/**
|
/**
|
||||||
* Listener implementation which sets flags on appropriate method calls
|
* Listener implementation which sets flags on appropriate method calls
|
||||||
*/
|
*/
|
||||||
protected class TestItemListener implements com.sun.star.awt.XItemListener {
|
protected static class TestItemListener implements com.sun.star.awt.XItemListener {
|
||||||
public boolean disposingCalled = false ;
|
public boolean disposingCalled = false ;
|
||||||
public boolean itemStateChangedCalled = false ;
|
public boolean itemStateChangedCalled = false ;
|
||||||
private final java.io.PrintWriter log;
|
private final java.io.PrintWriter log;
|
||||||
|
@@ -48,7 +48,7 @@ public class _XSpinField extends MultiMethodTest {
|
|||||||
* Listener implementation which set flags on appropriate
|
* Listener implementation which set flags on appropriate
|
||||||
* listener methods calls.
|
* listener methods calls.
|
||||||
*/
|
*/
|
||||||
protected class TestListener implements XSpinListener {
|
protected static class TestListener implements XSpinListener {
|
||||||
public boolean upFl = false ;
|
public boolean upFl = false ;
|
||||||
public boolean downFl = false ;
|
public boolean downFl = false ;
|
||||||
public boolean firstFl = false ;
|
public boolean firstFl = false ;
|
||||||
|
@@ -50,7 +50,7 @@ public class _XTopWindow extends MultiMethodTest {
|
|||||||
* Listener implementation which sets flags on different
|
* Listener implementation which sets flags on different
|
||||||
* method calls.
|
* method calls.
|
||||||
*/
|
*/
|
||||||
protected class TestListener implements XTopWindowListener {
|
protected static class TestListener implements XTopWindowListener {
|
||||||
private final PrintWriter log;
|
private final PrintWriter log;
|
||||||
public boolean activated = false ;
|
public boolean activated = false ;
|
||||||
public boolean deactivated = false ;
|
public boolean deactivated = false ;
|
||||||
|
@@ -162,7 +162,7 @@ public class _XWindow extends MultiMethodTest {
|
|||||||
* A class we use to test addWindowListener() and
|
* A class we use to test addWindowListener() and
|
||||||
* removeWindowListener()
|
* removeWindowListener()
|
||||||
*/
|
*/
|
||||||
public class TestWindowListener implements XWindowListener {
|
public static class TestWindowListener implements XWindowListener {
|
||||||
public boolean resized = false ;
|
public boolean resized = false ;
|
||||||
public boolean moved = false ;
|
public boolean moved = false ;
|
||||||
public boolean hidden = false ;
|
public boolean hidden = false ;
|
||||||
@@ -323,7 +323,7 @@ public class _XWindow extends MultiMethodTest {
|
|||||||
* A class we use to test addFocusListener() and
|
* A class we use to test addFocusListener() and
|
||||||
* removeFocusListener()
|
* removeFocusListener()
|
||||||
*/
|
*/
|
||||||
public class TestFocusListener implements XFocusListener {
|
public static class TestFocusListener implements XFocusListener {
|
||||||
public boolean gained = false ;
|
public boolean gained = false ;
|
||||||
public boolean lost = false ;
|
public boolean lost = false ;
|
||||||
|
|
||||||
@@ -405,7 +405,7 @@ public class _XWindow extends MultiMethodTest {
|
|||||||
* A class we use to test addKeyListener() and
|
* A class we use to test addKeyListener() and
|
||||||
* removeKeyListener()
|
* removeKeyListener()
|
||||||
*/
|
*/
|
||||||
public class TestKeyListener implements XKeyListener {
|
public static class TestKeyListener implements XKeyListener {
|
||||||
public boolean pressed = false;
|
public boolean pressed = false;
|
||||||
public boolean released = false;
|
public boolean released = false;
|
||||||
public void keyPressed(KeyEvent e) { pressed = true; }
|
public void keyPressed(KeyEvent e) { pressed = true; }
|
||||||
@@ -444,7 +444,7 @@ public class _XWindow extends MultiMethodTest {
|
|||||||
* A class we use to test addMouseListener() and
|
* A class we use to test addMouseListener() and
|
||||||
* removeMouseListener()
|
* removeMouseListener()
|
||||||
*/
|
*/
|
||||||
public class TestMouseListener implements XMouseListener {
|
public static class TestMouseListener implements XMouseListener {
|
||||||
public boolean pressed = false;
|
public boolean pressed = false;
|
||||||
public boolean released = false;
|
public boolean released = false;
|
||||||
public boolean entered = false;
|
public boolean entered = false;
|
||||||
@@ -507,7 +507,7 @@ public class _XWindow extends MultiMethodTest {
|
|||||||
* A class we use to test addMouseMotionListener() and
|
* A class we use to test addMouseMotionListener() and
|
||||||
* removeMouseMotionListener()
|
* removeMouseMotionListener()
|
||||||
*/
|
*/
|
||||||
public class TestMouseMotionListener implements XMouseMotionListener {
|
public static class TestMouseMotionListener implements XMouseMotionListener {
|
||||||
public boolean dragged = false;
|
public boolean dragged = false;
|
||||||
public boolean moved = false;
|
public boolean moved = false;
|
||||||
|
|
||||||
@@ -558,7 +558,7 @@ public class _XWindow extends MultiMethodTest {
|
|||||||
* A class we use to test addPaintListener() and
|
* A class we use to test addPaintListener() and
|
||||||
* removePaintListener()
|
* removePaintListener()
|
||||||
*/
|
*/
|
||||||
public class TestPaintListener implements XPaintListener {
|
public static class TestPaintListener implements XPaintListener {
|
||||||
public boolean paint = false;
|
public boolean paint = false;
|
||||||
|
|
||||||
public void windowPaint(PaintEvent e) {
|
public void windowPaint(PaintEvent e) {
|
||||||
|
@@ -95,7 +95,7 @@ public class _XPropertySet extends MultiMethodTest {
|
|||||||
* Structure that collects the properties of different types to test :
|
* Structure that collects the properties of different types to test :
|
||||||
* Constrained, Bound and Normal.
|
* Constrained, Bound and Normal.
|
||||||
*/
|
*/
|
||||||
private final class PropsToTest {
|
private static final class PropsToTest {
|
||||||
ArrayList< String > constrained = new ArrayList< String >();
|
ArrayList< String > constrained = new ArrayList< String >();
|
||||||
ArrayList< String > bound = new ArrayList< String >();
|
ArrayList< String > bound = new ArrayList< String >();
|
||||||
ArrayList< String > normal = new ArrayList< String >();
|
ArrayList< String > normal = new ArrayList< String >();
|
||||||
|
@@ -55,7 +55,7 @@ public class _XUnoUrlResolver extends MultiMethodTest {
|
|||||||
*
|
*
|
||||||
* @see com.sun.star.bridge.XInstanceProvider
|
* @see com.sun.star.bridge.XInstanceProvider
|
||||||
*/
|
*/
|
||||||
class MyInstanceProvider implements XInstanceProvider {
|
static class MyInstanceProvider implements XInstanceProvider {
|
||||||
/**
|
/**
|
||||||
* a MultiServiceFactory for creating instances
|
* a MultiServiceFactory for creating instances
|
||||||
*
|
*
|
||||||
|
@@ -50,7 +50,7 @@ public class _XClipboard extends MultiMethodTest {
|
|||||||
* <code>XClipboardOwner</code> interface implementation which
|
* <code>XClipboardOwner</code> interface implementation which
|
||||||
* stores parameters passed to <code>lostOwnership</code> method.
|
* stores parameters passed to <code>lostOwnership</code> method.
|
||||||
*/
|
*/
|
||||||
class MyOwner implements XClipboardOwner {
|
static class MyOwner implements XClipboardOwner {
|
||||||
XClipboard board;
|
XClipboard board;
|
||||||
XTransferable contents;
|
XTransferable contents;
|
||||||
|
|
||||||
@@ -64,7 +64,7 @@ public class _XClipboard extends MultiMethodTest {
|
|||||||
/**
|
/**
|
||||||
* Simpliest <code>XTransferable</code> interface implementation.
|
* Simpliest <code>XTransferable</code> interface implementation.
|
||||||
*/
|
*/
|
||||||
class MyTransferable implements XTransferable {
|
static class MyTransferable implements XTransferable {
|
||||||
public Object getTransferData(DataFlavor dataFlavor) {
|
public Object getTransferData(DataFlavor dataFlavor) {
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
@@ -53,7 +53,7 @@ public class _XClipboardNotifier extends MultiMethodTest {
|
|||||||
* <code>XClipboardOwner</code> interface implementation which
|
* <code>XClipboardOwner</code> interface implementation which
|
||||||
* stores parameters passed to <code>lostOwnership</code> method.
|
* stores parameters passed to <code>lostOwnership</code> method.
|
||||||
*/
|
*/
|
||||||
class MyOwner implements XClipboardOwner {
|
static class MyOwner implements XClipboardOwner {
|
||||||
XClipboard board;
|
XClipboard board;
|
||||||
XTransferable contents;
|
XTransferable contents;
|
||||||
|
|
||||||
@@ -67,7 +67,7 @@ public class _XClipboardNotifier extends MultiMethodTest {
|
|||||||
* Simpliest <code>XTransferable</code> interface implementation
|
* Simpliest <code>XTransferable</code> interface implementation
|
||||||
* which supports "text/html" data type.
|
* which supports "text/html" data type.
|
||||||
*/
|
*/
|
||||||
class MyTransferable implements XTransferable {
|
static class MyTransferable implements XTransferable {
|
||||||
DataFlavor[] supportedFlavors;
|
DataFlavor[] supportedFlavors;
|
||||||
|
|
||||||
public MyTransferable() {
|
public MyTransferable() {
|
||||||
|
@@ -155,7 +155,7 @@ public class _XFilter extends MultiMethodTest {
|
|||||||
* Calls <code>filter()</code> method in a separate thread.
|
* Calls <code>filter()</code> method in a separate thread.
|
||||||
* Necessary to check if the cancel method works
|
* Necessary to check if the cancel method works
|
||||||
*/
|
*/
|
||||||
protected class FilterThread extends Thread {
|
protected static class FilterThread extends Thread {
|
||||||
|
|
||||||
public boolean filterRes = true;
|
public boolean filterRes = true;
|
||||||
private final XFilter Filter;
|
private final XFilter Filter;
|
||||||
|
@@ -53,7 +53,7 @@ public class _XFormController extends MultiMethodTest {
|
|||||||
/**
|
/**
|
||||||
* Listener which determines and stores events occurred.
|
* Listener which determines and stores events occurred.
|
||||||
*/
|
*/
|
||||||
protected class MyListener implements XFormControllerListener {
|
protected static class MyListener implements XFormControllerListener {
|
||||||
public boolean activated = false ;
|
public boolean activated = false ;
|
||||||
public boolean deactivated = false ;
|
public boolean deactivated = false ;
|
||||||
public void disposing ( EventObject oEvent ) {}
|
public void disposing ( EventObject oEvent ) {}
|
||||||
|
@@ -44,7 +44,7 @@ public class _XLoadable extends MultiMethodTest {
|
|||||||
/**
|
/**
|
||||||
* Listener implementation which sets flags on appropriate method calls
|
* Listener implementation which sets flags on appropriate method calls
|
||||||
*/
|
*/
|
||||||
protected class TestLoadListener implements com.sun.star.form.XLoadListener {
|
protected static class TestLoadListener implements com.sun.star.form.XLoadListener {
|
||||||
public boolean disposingCalled = false ;
|
public boolean disposingCalled = false ;
|
||||||
public boolean loadedCalled = false ;
|
public boolean loadedCalled = false ;
|
||||||
public boolean reloadedCalled = false ;
|
public boolean reloadedCalled = false ;
|
||||||
|
@@ -61,7 +61,7 @@ public class _XSubmit extends MultiMethodTest {
|
|||||||
|
|
||||||
public static XSubmit oObj = null;
|
public static XSubmit oObj = null;
|
||||||
|
|
||||||
public class MySubmitListener implements XSubmitListener {
|
public static class MySubmitListener implements XSubmitListener {
|
||||||
public int called = 0 ;
|
public int called = 0 ;
|
||||||
public void disposing ( EventObject oEvent ) {
|
public void disposing ( EventObject oEvent ) {
|
||||||
}
|
}
|
||||||
|
@@ -87,7 +87,7 @@ public class _XUpdateBroadcaster extends MultiMethodTest {
|
|||||||
* Listener implementation, which can accept or reject update
|
* Listener implementation, which can accept or reject update
|
||||||
* requests and store event calls.
|
* requests and store event calls.
|
||||||
*/
|
*/
|
||||||
protected class TestListener implements XUpdateListener {
|
protected static class TestListener implements XUpdateListener {
|
||||||
/**
|
/**
|
||||||
* Indicates must listener approve update requests or not.
|
* Indicates must listener approve update requests or not.
|
||||||
*/
|
*/
|
||||||
|
@@ -81,7 +81,7 @@ public class _XBindableValue extends MultiMethodTest {
|
|||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
class MyValueBinding implements XValueBinding {
|
static class MyValueBinding implements XValueBinding {
|
||||||
private final ArrayList<Type> types = new ArrayList<Type>();
|
private final ArrayList<Type> types = new ArrayList<Type>();
|
||||||
|
|
||||||
public com.sun.star.uno.Type[] getSupportedValueTypes() {
|
public com.sun.star.uno.Type[] getSupportedValueTypes() {
|
||||||
|
@@ -56,7 +56,7 @@ public class _XValidatable extends MultiMethodTest {
|
|||||||
tRes.tested("setValidator()", res);
|
tRes.tested("setValidator()", res);
|
||||||
}
|
}
|
||||||
|
|
||||||
public class MyValidator implements XValidator {
|
public static class MyValidator implements XValidator {
|
||||||
public void addValidityConstraintListener(com.sun.star.form.validation.XValidityConstraintListener xValidityConstraintListener)
|
public void addValidityConstraintListener(com.sun.star.form.validation.XValidityConstraintListener xValidityConstraintListener)
|
||||||
throws com.sun.star.lang.NullPointerException {
|
throws com.sun.star.lang.NullPointerException {
|
||||||
}
|
}
|
||||||
|
@@ -55,7 +55,7 @@ public class _XDispatch extends MultiMethodTest {
|
|||||||
/**
|
/**
|
||||||
* Listener implementation which sets flags on appropriate method calls
|
* Listener implementation which sets flags on appropriate method calls
|
||||||
*/
|
*/
|
||||||
protected class TestStatusListener implements
|
protected static class TestStatusListener implements
|
||||||
com.sun.star.frame.XStatusListener {
|
com.sun.star.frame.XStatusListener {
|
||||||
public boolean disposingCalled = false ;
|
public boolean disposingCalled = false ;
|
||||||
public boolean statusChangedCalled = false ;
|
public boolean statusChangedCalled = false ;
|
||||||
@@ -85,7 +85,7 @@ public class _XDispatch extends MultiMethodTest {
|
|||||||
/**
|
/**
|
||||||
* Listener implementation which sets flags on appropriate method calls
|
* Listener implementation which sets flags on appropriate method calls
|
||||||
*/
|
*/
|
||||||
protected class TestNotificationListener implements
|
protected static class TestNotificationListener implements
|
||||||
com.sun.star.frame.XDispatchResultListener {
|
com.sun.star.frame.XDispatchResultListener {
|
||||||
public boolean disposingCalled = false ;
|
public boolean disposingCalled = false ;
|
||||||
public boolean finishedDispatch = false ;
|
public boolean finishedDispatch = false ;
|
||||||
|
@@ -48,7 +48,7 @@ public class _XDispatchProviderInterception extends MultiMethodTest {
|
|||||||
* slave interceptors, and redirect all dispatch queries to the master
|
* slave interceptors, and redirect all dispatch queries to the master
|
||||||
* provider.
|
* provider.
|
||||||
*/
|
*/
|
||||||
public class TestInterceptor implements XDispatchProviderInterceptor {
|
public static class TestInterceptor implements XDispatchProviderInterceptor {
|
||||||
private final PrintWriter log;
|
private final PrintWriter log;
|
||||||
public XDispatchProvider master = null, slave = null ;
|
public XDispatchProvider master = null, slave = null ;
|
||||||
|
|
||||||
|
@@ -67,7 +67,7 @@ public class _XFrameLoader extends MultiMethodTest {
|
|||||||
/**
|
/**
|
||||||
* Implemetation of load listener which geristers all its calls.
|
* Implemetation of load listener which geristers all its calls.
|
||||||
*/
|
*/
|
||||||
protected class TestListener implements XLoadEventListener {
|
protected static class TestListener implements XLoadEventListener {
|
||||||
public boolean finished = false ;
|
public boolean finished = false ;
|
||||||
public boolean cancelled = false ;
|
public boolean cancelled = false ;
|
||||||
|
|
||||||
|
@@ -53,7 +53,7 @@ public class _XNotifyingDispatch extends MultiMethodTest {
|
|||||||
/**
|
/**
|
||||||
* Listener implementation which sets flags on appropriate method calls
|
* Listener implementation which sets flags on appropriate method calls
|
||||||
*/
|
*/
|
||||||
protected class TestNotificationListener implements
|
protected static class TestNotificationListener implements
|
||||||
com.sun.star.frame.XDispatchResultListener {
|
com.sun.star.frame.XDispatchResultListener {
|
||||||
public boolean disposingCalled = false ;
|
public boolean disposingCalled = false ;
|
||||||
public boolean finishedDispatch = false ;
|
public boolean finishedDispatch = false ;
|
||||||
|
@@ -43,7 +43,7 @@ public class _XPopupMenuController extends MultiMethodTest {
|
|||||||
tRes.tested("updatePopupMenu()", true);
|
tRes.tested("updatePopupMenu()", true);
|
||||||
}
|
}
|
||||||
|
|
||||||
private class PopupMenuImpl implements XPopupMenu {
|
private static class PopupMenuImpl implements XPopupMenu {
|
||||||
|
|
||||||
public void addMenuListener(com.sun.star.awt.XMenuListener xMenuListener) {
|
public void addMenuListener(com.sun.star.awt.XMenuListener xMenuListener) {
|
||||||
System.out.println("addMenuListener called.");
|
System.out.println("addMenuListener called.");
|
||||||
|
@@ -476,7 +476,7 @@ public class _XEventAttacherManager extends MultiMethodTest {
|
|||||||
* No functionality implemented.
|
* No functionality implemented.
|
||||||
* @see com.sun.star.script.XScriptListener
|
* @see com.sun.star.script.XScriptListener
|
||||||
*/
|
*/
|
||||||
class MyScriptListener implements XScriptListener {
|
static class MyScriptListener implements XScriptListener {
|
||||||
public void firing(ScriptEvent evt) {
|
public void firing(ScriptEvent evt) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -79,7 +79,7 @@ public class _XRowSetApproveBroadcaster extends MultiMethodTest {
|
|||||||
* which just detects and stores approve requipements. They are checked
|
* which just detects and stores approve requipements. They are checked
|
||||||
* later.
|
* later.
|
||||||
*/
|
*/
|
||||||
private class TestListener implements XRowSetApproveListener {
|
private static class TestListener implements XRowSetApproveListener {
|
||||||
public boolean approveRequests = true ;
|
public boolean approveRequests = true ;
|
||||||
public boolean approveCursorMoveCalled = false ;
|
public boolean approveCursorMoveCalled = false ;
|
||||||
public boolean approveRowChangeCalled = false ;
|
public boolean approveRowChangeCalled = false ;
|
||||||
|
@@ -55,7 +55,7 @@ public class _XRowSet extends MultiMethodTest {
|
|||||||
private _XRowSetApproveBroadcaster.RowSetApproveChecker checker = null ;
|
private _XRowSetApproveBroadcaster.RowSetApproveChecker checker = null ;
|
||||||
private final TestListener listener = new TestListener() ;
|
private final TestListener listener = new TestListener() ;
|
||||||
|
|
||||||
private class TestListener implements XRowSetListener {
|
private static class TestListener implements XRowSetListener {
|
||||||
public boolean cursorMoved = false ;
|
public boolean cursorMoved = false ;
|
||||||
public boolean rowChanged = false ;
|
public boolean rowChanged = false ;
|
||||||
public boolean rowSetChanged = false ;
|
public boolean rowSetChanged = false ;
|
||||||
|
@@ -109,7 +109,7 @@ public class _SpreadsheetDocumentSettings extends MultiPropertyTest {
|
|||||||
* for russian locale.
|
* for russian locale.
|
||||||
* @see com.sun.star.i18n.XForbiddenCharacters
|
* @see com.sun.star.i18n.XForbiddenCharacters
|
||||||
*/
|
*/
|
||||||
protected class ForbiddenChrTest implements XForbiddenCharacters {
|
protected static class ForbiddenChrTest implements XForbiddenCharacters {
|
||||||
protected Locale locale = new Locale("ru", "RU", "");
|
protected Locale locale = new Locale("ru", "RU", "");
|
||||||
protected ForbiddenCharacters chrs = new ForbiddenCharacters("q", "w");
|
protected ForbiddenCharacters chrs = new ForbiddenCharacters("q", "w");
|
||||||
|
|
||||||
|
@@ -68,7 +68,7 @@ public class _XDataPilotTable2 extends MultiMethodTest
|
|||||||
* exception to be thrown when obtaining a result data for a cell fails
|
* exception to be thrown when obtaining a result data for a cell fails
|
||||||
* (probably because the cell is not a result cell).
|
* (probably because the cell is not a result cell).
|
||||||
*/
|
*/
|
||||||
private class ResultCellFailure extends com.sun.star.uno.Exception {}
|
private static class ResultCellFailure extends com.sun.star.uno.Exception {}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void before()
|
protected void before()
|
||||||
|
@@ -482,7 +482,7 @@ public class _CharacterProperties extends MultiPropertyTest {
|
|||||||
tRes.tested("TextUserDefinedAttributes", res);
|
tRes.tested("TextUserDefinedAttributes", res);
|
||||||
}
|
}
|
||||||
|
|
||||||
private class OwnUserDefinedAttributes implements XNameContainer{
|
private static class OwnUserDefinedAttributes implements XNameContainer{
|
||||||
HashMap<String, Object> members = null;
|
HashMap<String, Object> members = null;
|
||||||
|
|
||||||
|
|
||||||
|
@@ -453,7 +453,7 @@ public class _ParagraphProperties extends MultiPropertyTest {
|
|||||||
tRes.tested("ParaUserDefinedAttributes", res);
|
tRes.tested("ParaUserDefinedAttributes", res);
|
||||||
}
|
}
|
||||||
|
|
||||||
private class OwnUserDefinedAttributes implements XNameContainer{
|
private static class OwnUserDefinedAttributes implements XNameContainer{
|
||||||
HashMap<String, Object> members = null;
|
HashMap<String, Object> members = null;
|
||||||
|
|
||||||
|
|
||||||
|
@@ -41,7 +41,7 @@ public class _XRemoteContentProviderAcceptor extends MultiMethodTest {
|
|||||||
* The simple <code>XRemoteContentProviderDoneListener</code>
|
* The simple <code>XRemoteContentProviderDoneListener</code>
|
||||||
* implementation.
|
* implementation.
|
||||||
*/
|
*/
|
||||||
public class DoneListener implements XRemoteContentProviderDoneListener {
|
public static class DoneListener implements XRemoteContentProviderDoneListener {
|
||||||
|
|
||||||
public void doneWithRemoteContentProviders
|
public void doneWithRemoteContentProviders
|
||||||
(XRemoteContentProviderAcceptor xRCPA) {
|
(XRemoteContentProviderAcceptor xRCPA) {
|
||||||
|
@@ -43,7 +43,7 @@ public class _XFlushable extends MultiMethodTest {
|
|||||||
* Simple <code>XFlushListener</code> implementation which
|
* Simple <code>XFlushListener</code> implementation which
|
||||||
* just registers if any calls to its methods were made.
|
* just registers if any calls to its methods were made.
|
||||||
*/
|
*/
|
||||||
private class MyFlushListener implements XFlushListener{
|
private static class MyFlushListener implements XFlushListener{
|
||||||
boolean called = false ;
|
boolean called = false ;
|
||||||
public void flushed(com.sun.star.lang.EventObject e) {
|
public void flushed(com.sun.star.lang.EventObject e) {
|
||||||
called = true ;
|
called = true ;
|
||||||
|
@@ -532,7 +532,7 @@ public class ORowSet extends TestCase {
|
|||||||
* for the XCompletedExecution test
|
* for the XCompletedExecution test
|
||||||
* @see ifc.sdb._XCompletedExecution
|
* @see ifc.sdb._XCompletedExecution
|
||||||
*/
|
*/
|
||||||
private class InteractionHandlerImpl implements _XCompletedExecution.CheckInteractionHandler {
|
private static class InteractionHandlerImpl implements _XCompletedExecution.CheckInteractionHandler {
|
||||||
private boolean handlerWasUsed = false;
|
private boolean handlerWasUsed = false;
|
||||||
private PrintWriter log = new PrintWriter(System.out);
|
private PrintWriter log = new PrintWriter(System.out);
|
||||||
|
|
||||||
|
@@ -819,7 +819,7 @@ public class ODatabaseForm extends TestCase {
|
|||||||
* for the XCompletedExecution test
|
* for the XCompletedExecution test
|
||||||
* @see ifc.sdb._XCompletedExecution
|
* @see ifc.sdb._XCompletedExecution
|
||||||
*/
|
*/
|
||||||
private class InteractionHandlerImpl implements _XCompletedExecution.CheckInteractionHandler {
|
private static class InteractionHandlerImpl implements _XCompletedExecution.CheckInteractionHandler {
|
||||||
private boolean handlerWasUsed = false;
|
private boolean handlerWasUsed = false;
|
||||||
private PrintWriter log = new PrintWriter(System.out);
|
private PrintWriter log = new PrintWriter(System.out);
|
||||||
|
|
||||||
|
@@ -80,7 +80,7 @@ public class various extends TestCase {
|
|||||||
*
|
*
|
||||||
* @see com.sun.star.bridge.XInstanceProvider
|
* @see com.sun.star.bridge.XInstanceProvider
|
||||||
*/
|
*/
|
||||||
private class MyInstanceProvider implements XInstanceProvider {
|
private static class MyInstanceProvider implements XInstanceProvider {
|
||||||
/**
|
/**
|
||||||
* a MultiServiceFactory for creating instances
|
* a MultiServiceFactory for creating instances
|
||||||
*
|
*
|
||||||
|
@@ -248,7 +248,7 @@ public class UnoTreeControl extends TestCase {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private class execurteDialog extends Thread{
|
private static class execurteDialog extends Thread{
|
||||||
private final XDialog mXDialog;
|
private final XDialog mXDialog;
|
||||||
|
|
||||||
public execurteDialog(XDialog xDialog){
|
public execurteDialog(XDialog xDialog){
|
||||||
|
@@ -130,7 +130,7 @@ public class SDBCReportDataFactory implements DataSourceFactory
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private class ParameterDefinition
|
private static class ParameterDefinition
|
||||||
{
|
{
|
||||||
private int parameterCount = 0;
|
private int parameterCount = 0;
|
||||||
private final ArrayList<Integer> parameterIndex = new ArrayList<Integer>();
|
private final ArrayList<Integer> parameterIndex = new ArrayList<Integer>();
|
||||||
|
@@ -195,7 +195,7 @@ public class ScriptEditorForJavaScript implements ScriptEditor {
|
|||||||
private ScriptEditorForJavaScript(XScriptContext context, URL url) {
|
private ScriptEditorForJavaScript(XScriptContext context, URL url) {
|
||||||
initUI();
|
initUI();
|
||||||
Scriptable scope = getScope(context);
|
Scriptable scope = getScope(context);
|
||||||
rhinoWindow.openFile(url, scope, new closeHandler(url));
|
rhinoWindow.openFile(url, scope, new CloseHandler(url));
|
||||||
this.scriptURL = url;
|
this.scriptURL = url;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -294,11 +294,11 @@ public class ScriptEditorForJavaScript implements ScriptEditor {
|
|||||||
return scope;
|
return scope;
|
||||||
}
|
}
|
||||||
|
|
||||||
private class closeHandler implements Runnable {
|
private static class CloseHandler implements Runnable {
|
||||||
|
|
||||||
private final URL url;
|
private final URL url;
|
||||||
|
|
||||||
private closeHandler(URL url) {
|
private CloseHandler(URL url) {
|
||||||
this.url = url;
|
this.url = url;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -83,9 +83,8 @@ public class TableDescriptor extends CommandMetaData implements XContainerListen
|
|||||||
xWindow = _xWindow;
|
xWindow = _xWindow;
|
||||||
}
|
}
|
||||||
|
|
||||||
private class ColumnDescriptor
|
private static class ColumnDescriptor
|
||||||
{
|
{
|
||||||
|
|
||||||
String Name;
|
String Name;
|
||||||
XPropertySet xColPropertySet;
|
XPropertySet xColPropertySet;
|
||||||
|
|
||||||
|
@@ -46,7 +46,7 @@ public class TypeInspector
|
|||||||
};
|
};
|
||||||
static final int INVALID = 999999;
|
static final int INVALID = 999999;
|
||||||
|
|
||||||
public class TypeInfo
|
public static class TypeInfo
|
||||||
{
|
{
|
||||||
public boolean bisAutoIncrementable;
|
public boolean bisAutoIncrementable;
|
||||||
|
|
||||||
|
@@ -411,7 +411,7 @@ class OfficeZip {
|
|||||||
*
|
*
|
||||||
* <p>These are stored in {@code entryList}.</p>
|
* <p>These are stored in {@code entryList}.</p>
|
||||||
*/
|
*/
|
||||||
private class Entry {
|
private static class Entry {
|
||||||
|
|
||||||
ZipEntry zipEntry = null;
|
ZipEntry zipEntry = null;
|
||||||
byte bytes[] = null;
|
byte bytes[] = null;
|
||||||
|
Reference in New Issue
Block a user