Kaydet (Commit) 14bc8188 authored tarafından Noel Grandin's avatar Noel Grandin

java: some random small cleanups

Change-Id: I22a5b9fa29d465a21e682279e6e88d37bd8adf93
üst b4adcc44
...@@ -52,7 +52,7 @@ public final class AnyConverter_Test { ...@@ -52,7 +52,7 @@ public final class AnyConverter_Test {
byte[] arByte; byte[] arByte;
/** Class variables are initialized before each Test method */ /** Class variables are initialized before each Test method */
@Before public void setUp() throws Exception @Before public void setUp()
{ {
aBool= Boolean.TRUE; aBool= Boolean.TRUE;
aChar= new Character('A'); aChar= new Character('A');
......
...@@ -31,7 +31,6 @@ import com.sun.star.util.XStringSubstitution; ...@@ -31,7 +31,6 @@ import com.sun.star.util.XStringSubstitution;
import java.io.File; import java.io.File;
import java.io.PrintWriter; import java.io.PrintWriter;
import java.util.StringTokenizer;
import lib.TestParameters; import lib.TestParameters;
......
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
package helper; package helper;
import lib.TestParameters; import lib.TestParameters;
import java.util.StringTokenizer;
import util.utils; import util.utils;
public class OfficeWatcher extends Thread implements share.Watcher { public class OfficeWatcher extends Thread implements share.Watcher {
......
...@@ -57,16 +57,11 @@ public class _XFastPropertySet extends MultiMethodTest { ...@@ -57,16 +57,11 @@ public class _XFastPropertySet extends MultiMethodTest {
public final int handle; public final int handle;
public final String name; public final String name;
public Prop() {
handle = -1;
name = null;
}
public Prop(int handle, String name) { public Prop(int handle, String name) {
this.handle = handle; this.handle = handle;
this.name = name; this.name = name;
} }
}; }
public XFastPropertySet oObj = null; public XFastPropertySet oObj = null;
private final List<Prop> props = new ArrayList<Prop>(); private final List<Prop> props = new ArrayList<Prop>();
......
...@@ -19,7 +19,6 @@ package com.sun.star.wizards.document; ...@@ -19,7 +19,6 @@ package com.sun.star.wizards.document;
import com.sun.star.awt.Point; import com.sun.star.awt.Point;
import com.sun.star.awt.Size; import com.sun.star.awt.Size;
import com.sun.star.beans.PropertyVetoException;
import com.sun.star.beans.XPropertySet; import com.sun.star.beans.XPropertySet;
import com.sun.star.wizards.common.*; import com.sun.star.wizards.common.*;
import com.sun.star.wizards.db.FieldColumn; import com.sun.star.wizards.db.FieldColumn;
...@@ -29,7 +28,6 @@ import com.sun.star.uno.Exception; ...@@ -29,7 +28,6 @@ import com.sun.star.uno.Exception;
import com.sun.star.uno.UnoRuntime; import com.sun.star.uno.UnoRuntime;
import com.sun.star.container.XNameContainer; import com.sun.star.container.XNameContainer;
import com.sun.star.drawing.XControlShape; import com.sun.star.drawing.XControlShape;
import com.sun.star.drawing.XShape;
import com.sun.star.drawing.XShapes; import com.sun.star.drawing.XShapes;
public class TimeStampControl extends DatabaseControl public class TimeStampControl extends DatabaseControl
...@@ -38,8 +36,6 @@ public class TimeStampControl extends DatabaseControl ...@@ -38,8 +36,6 @@ public class TimeStampControl extends DatabaseControl
private DatabaseControl oDateControl; private DatabaseControl oDateControl;
private DatabaseControl oTimeControl; private DatabaseControl oTimeControl;
private Resource oResource; private Resource oResource;
private double nreldatewidth;
private double nreltimewidth;
private int nDBWidth; private int nDBWidth;
public TimeStampControl(Resource _oResource, FormHandler _oFormHandler, XNameContainer _xFormName, String _curFieldName, Point _aPoint) public TimeStampControl(Resource _oResource, FormHandler _oFormHandler, XNameContainer _xFormName, String _curFieldName, Point _aPoint)
...@@ -59,8 +55,6 @@ public class TimeStampControl extends DatabaseControl ...@@ -59,8 +55,6 @@ public class TimeStampControl extends DatabaseControl
xShapes.add(oTimeControl.xShape); xShapes.add(oTimeControl.xShape);
xShape = _oFormHandler.xShapeGrouper.group(xShapes); xShape = _oFormHandler.xShapeGrouper.group(xShapes);
xShapes = UnoRuntime.queryInterface(XShapes.class, xShape); xShapes = UnoRuntime.queryInterface(XShapes.class, xShape);
nreldatewidth = 1.0 / ((double) getSize().Width / (double) nDateWidth);
nreltimewidth = 1.0 - nreldatewidth;
} }
public XPropertySet getControlofGroupShapeByIndex(int _i) public XPropertySet getControlofGroupShapeByIndex(int _i)
......
...@@ -42,7 +42,6 @@ import com.sun.star.wizards.common.PropertyNames; ...@@ -42,7 +42,6 @@ import com.sun.star.wizards.common.PropertyNames;
import com.sun.star.wizards.common.Resource; import com.sun.star.wizards.common.Resource;
import com.sun.star.wizards.ui.event.XActionListenerAdapter; import com.sun.star.wizards.ui.event.XActionListenerAdapter;
import com.sun.star.wizards.ui.event.XItemListenerAdapter; import com.sun.star.wizards.ui.event.XItemListenerAdapter;
import com.sun.star.wizards.ui.event.XWindowListenerAdapter;
public abstract class WizardDialog extends UnoDialog2 implements VetoableChangeListener, XTerminateListener public abstract class WizardDialog extends UnoDialog2 implements VetoableChangeListener, XTerminateListener
{ {
......
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