diff options
Diffstat (limited to 'qadevOOo/tests/java/ifc')
14 files changed, 16 insertions, 27 deletions
diff --git a/qadevOOo/tests/java/ifc/accessibility/_XAccessibleComponent.java b/qadevOOo/tests/java/ifc/accessibility/_XAccessibleComponent.java index 68617deb488d..5a1676cf4e7c 100644 --- a/qadevOOo/tests/java/ifc/accessibility/_XAccessibleComponent.java +++ b/qadevOOo/tests/java/ifc/accessibility/_XAccessibleComponent.java @@ -81,8 +81,6 @@ public class _XAccessibleComponent extends MultiMethodTest { curX++; } - ; - //if ((bounds.X <= curX) && (curX < bounds.Width+bounds.X)) { if (curX < bounds.Width) { log.println("Upper bound of box containsPoint point (" + curX + @@ -103,8 +101,6 @@ public class _XAccessibleComponent extends MultiMethodTest { curX++; } - ; - //if ((bounds.X <= curX) && (curX < bounds.Width+bounds.X)) { if (curX < bounds.Width) { log.println("Lower bound of box containsPoint point (" + curX + @@ -123,8 +119,6 @@ public class _XAccessibleComponent extends MultiMethodTest { curY++; } - ; - //if ((bounds.Y <= curY) && (curY < bounds.Height+bounds.Y)) { if (curY < bounds.Height) { log.println("Left bound of box containsPoint point (0," + curY + @@ -144,8 +138,6 @@ public class _XAccessibleComponent extends MultiMethodTest { curY++; } - ; - //if ((bounds.Y <= curY) && (curY < bounds.Height + bounds.Y)) { if (curY < bounds.Height) { log.println("Right bound of box containsPoint point (" + @@ -269,8 +261,6 @@ public class _XAccessibleComponent extends MultiMethodTest { curY--; } - ; - if ((curX == chBnd.Width) && isShowing) { log.println("Couldn't find a point with containsPoint"); diff --git a/qadevOOo/tests/java/ifc/awt/_XUserInputInterception.java b/qadevOOo/tests/java/ifc/awt/_XUserInputInterception.java index 3d1dc2d52a6b..37386f6da541 100644 --- a/qadevOOo/tests/java/ifc/awt/_XUserInputInterception.java +++ b/qadevOOo/tests/java/ifc/awt/_XUserInputInterception.java @@ -348,7 +348,7 @@ public class _XUserInputInterception extends MultiMethodTest { public void disposing( EventObject oEvent ){ log.println("XMouseClickHandler 1: disposing-Event"); } - }; + } /** * Listener which added and removed. Its method must NOT be called @@ -387,7 +387,7 @@ public class _XUserInputInterception extends MultiMethodTest { log.println("XMouseClickHandler 2: disposing-Event: " + " This should not be happen because listener is removed!"); } - }; + } /** * To check the events this class is a thread which click a mouse button and diff --git a/qadevOOo/tests/java/ifc/beans/_XMultiPropertySet.java b/qadevOOo/tests/java/ifc/beans/_XMultiPropertySet.java index e6eee001a116..ce6f1dce666e 100644 --- a/qadevOOo/tests/java/ifc/beans/_XMultiPropertySet.java +++ b/qadevOOo/tests/java/ifc/beans/_XMultiPropertySet.java @@ -93,7 +93,7 @@ public class _XMultiPropertySet extends MultiMethodTest { propertiesChanged = true; } public void disposing (EventObject obj) {} - }; + } private XPropertiesChangeListener PClistener = new MyChangeListener(); diff --git a/qadevOOo/tests/java/ifc/beans/_XPropertySet.java b/qadevOOo/tests/java/ifc/beans/_XPropertySet.java index 915987247e35..20940d0381db 100644 --- a/qadevOOo/tests/java/ifc/beans/_XPropertySet.java +++ b/qadevOOo/tests/java/ifc/beans/_XPropertySet.java @@ -67,7 +67,7 @@ public class _XPropertySet extends MultiMethodTest { propertyChanged = true; } public void disposing (EventObject obj) {} - }; + } private final XPropertyChangeListener PClistener = new MyChangeListener(); @@ -87,7 +87,7 @@ public class _XPropertySet extends MultiMethodTest { vetoableChanged = true; } public void disposing (EventObject obj) {} - }; + } private final XVetoableChangeListener VClistener = new MyVetoListener(); diff --git a/qadevOOo/tests/java/ifc/container/_XContainer.java b/qadevOOo/tests/java/ifc/container/_XContainer.java index 9d718155c4a4..81b33d90f0e8 100644 --- a/qadevOOo/tests/java/ifc/container/_XContainer.java +++ b/qadevOOo/tests/java/ifc/container/_XContainer.java @@ -144,7 +144,7 @@ public class _XContainer extends MultiMethodTest { bElementReplaced = true; } public void disposing (EventObject obj) {} - }; + } MyListener listener = new MyListener(); diff --git a/qadevOOo/tests/java/ifc/lang/_XComponent.java b/qadevOOo/tests/java/ifc/lang/_XComponent.java index 7f4db951d86f..78ddc35ff1d2 100644 --- a/qadevOOo/tests/java/ifc/lang/_XComponent.java +++ b/qadevOOo/tests/java/ifc/lang/_XComponent.java @@ -55,7 +55,7 @@ public class _XComponent extends MultiMethodTest { Loutput[0] = Thread.currentThread() + " is DISPOSING EV1" + this; listenerDisposed[0] = true; } - }; + } /** * Listener which added and then removed, and its method must <b>not</b> @@ -66,7 +66,7 @@ public class _XComponent extends MultiMethodTest { Loutput[0] = Thread.currentThread() + " is DISPOSING EV2" + this; listenerDisposed[1] = true; } - }; + } XEventListener listener1 = new MyEventListener(); XEventListener listener2 = new MyEventListener2(); diff --git a/qadevOOo/tests/java/ifc/linguistic2/_XDictionaryList.java b/qadevOOo/tests/java/ifc/linguistic2/_XDictionaryList.java index 25b5687f16f8..ca5ad0110c50 100644 --- a/qadevOOo/tests/java/ifc/linguistic2/_XDictionaryList.java +++ b/qadevOOo/tests/java/ifc/linguistic2/_XDictionaryList.java @@ -69,7 +69,7 @@ public class _XDictionaryList extends MultiMethodTest { public void processDictionaryListEvent( DictionaryListEvent aDicEvent) { listenerCalled = true; } - }; + } XDictionaryListEventListener listener = new MyDictionaryListEventListener(); diff --git a/qadevOOo/tests/java/ifc/linguistic2/_XLinguServiceEventBroadcaster.java b/qadevOOo/tests/java/ifc/linguistic2/_XLinguServiceEventBroadcaster.java index cb297edbc5eb..9396ebf2876e 100644 --- a/qadevOOo/tests/java/ifc/linguistic2/_XLinguServiceEventBroadcaster.java +++ b/qadevOOo/tests/java/ifc/linguistic2/_XLinguServiceEventBroadcaster.java @@ -52,7 +52,7 @@ public class _XLinguServiceEventBroadcaster extends MultiMethodTest { log.println("Listener called"); } - }; + } XLinguServiceEventListener listener = new MyLinguServiceEventListener(); diff --git a/qadevOOo/tests/java/ifc/linguistic2/_XLinguServiceManager.java b/qadevOOo/tests/java/ifc/linguistic2/_XLinguServiceManager.java index c663e4f2887f..7b735c64ff52 100644 --- a/qadevOOo/tests/java/ifc/linguistic2/_XLinguServiceManager.java +++ b/qadevOOo/tests/java/ifc/linguistic2/_XLinguServiceManager.java @@ -63,7 +63,7 @@ public class _XLinguServiceManager extends MultiMethodTest { listenerCalled = true; log.println("Listener called"); } - }; + } XLinguServiceEventListener listener = new MyLinguServiceEventListener(); diff --git a/qadevOOo/tests/java/ifc/sheet/_XRangeSelection.java b/qadevOOo/tests/java/ifc/sheet/_XRangeSelection.java index 9003522c9e45..882ad1080db6 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XRangeSelection.java +++ b/qadevOOo/tests/java/ifc/sheet/_XRangeSelection.java @@ -97,7 +97,7 @@ public class _XRangeSelection extends MultiMethodTest { requiredMethod("addRangeSelectionListener()"); // get the sheet center - Point center = getSheetCenter();; + Point center = getSheetCenter(); if (center == null) throw new StatusException(Status.failed("Couldn't get the sheet center.")); @@ -205,7 +205,7 @@ public class _XRangeSelection extends MultiMethodTest { if (xacc != null) { if (xacc.getAccessibleContext().getAccessibleName().indexOf("d2")>0) { tw=tw_temp; - }; + } } else { log.println("\t unknown window"); } diff --git a/qadevOOo/tests/java/ifc/text/_TextGraphicObject.java b/qadevOOo/tests/java/ifc/text/_TextGraphicObject.java index e967d89d8dd3..924a64583e53 100644 --- a/qadevOOo/tests/java/ifc/text/_TextGraphicObject.java +++ b/qadevOOo/tests/java/ifc/text/_TextGraphicObject.java @@ -136,7 +136,6 @@ public class _TextGraphicObject extends MultiPropertyTest { res[0][i] = new Point(); res[0][i].X = rd() * rd() * rd(); res[0][i].Y = rd() * rd() * rd(); - ; } return res; diff --git a/qadevOOo/tests/java/ifc/text/_TextSection.java b/qadevOOo/tests/java/ifc/text/_TextSection.java index 0c9593924511..c4fc53745554 100644 --- a/qadevOOo/tests/java/ifc/text/_TextSection.java +++ b/qadevOOo/tests/java/ifc/text/_TextSection.java @@ -106,7 +106,7 @@ public class _TextSection extends MultiPropertyTest { TC.setColumnCount(val2set); return TC; - }; + } protected boolean compare(Object obj1, Object obj2) { short val1 = 0; diff --git a/qadevOOo/tests/java/ifc/ucb/_XRemoteContentProviderAcceptor.java b/qadevOOo/tests/java/ifc/ucb/_XRemoteContentProviderAcceptor.java index 319b1ccad7b6..937e676218c7 100644 --- a/qadevOOo/tests/java/ifc/ucb/_XRemoteContentProviderAcceptor.java +++ b/qadevOOo/tests/java/ifc/ucb/_XRemoteContentProviderAcceptor.java @@ -49,7 +49,7 @@ public class _XRemoteContentProviderAcceptor extends MultiMethodTest { } public void disposing (com.sun.star.lang.EventObject obj) {} - }; + } XRemoteContentProviderDoneListener aDoneListener = new DoneListener(); diff --git a/qadevOOo/tests/java/ifc/ucb/_XSimpleFileAccess.java b/qadevOOo/tests/java/ifc/ucb/_XSimpleFileAccess.java index 0672500aa48a..a88c87e82337 100644 --- a/qadevOOo/tests/java/ifc/ucb/_XSimpleFileAccess.java +++ b/qadevOOo/tests/java/ifc/ucb/_XSimpleFileAccess.java @@ -515,7 +515,7 @@ public class _XSimpleFileAccess extends MultiMethodTest { */ public void _setInteractionHandler() { XInteractionHandler handler = null; - Object oHandler = tEnv.getObjRelation("InteractionHandler");; + Object oHandler = tEnv.getObjRelation("InteractionHandler"); if (oHandler == null) throw new StatusException |