From c0415d5f1e96304b0d528de92b6ba0cdf31b503b Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 15 Aug 2014 16:38:03 +0200 Subject: java: remove unnecessary constructor declarations in the absence of any other constructors, the compiler will automatically generate a public no-arg constructor Change-Id: I70eca507cd8e16e33580b3398d41d70690bc2909 --- qadevOOo/runner/complexlib/ShowTargets.java | 5 ----- qadevOOo/runner/convwatch/DBHelper.java | 2 -- qadevOOo/runner/convwatch/PixelCounter.java | 8 -------- qadevOOo/runner/graphical/PixelCounter.java | 10 ---------- qadevOOo/runner/graphical/TimeHelper.java | 3 --- qadevOOo/runner/helper/PropertyHandlerFactroy.java | 4 ---- qadevOOo/runner/helper/PropertyHandlerImpl.java | 4 ---- qadevOOo/runner/helper/UnoProvider.java | 4 ---- qadevOOo/runner/org/openoffice/RunnerService.java | 7 ------- qadevOOo/runner/util/AccessibilityTools.java | 4 ---- qadevOOo/runner/util/XLayerImpl.java | 3 --- 11 files changed, 54 deletions(-) (limited to 'qadevOOo/runner') diff --git a/qadevOOo/runner/complexlib/ShowTargets.java b/qadevOOo/runner/complexlib/ShowTargets.java index 7a8267409af5..210ad33851fe 100644 --- a/qadevOOo/runner/complexlib/ShowTargets.java +++ b/qadevOOo/runner/complexlib/ShowTargets.java @@ -22,11 +22,6 @@ import java.util.ArrayList; public class ShowTargets { - /** Creates a new instance of ShowTargets */ - public ShowTargets() - { - } - public static void main( String[] args ) { ArrayList targets = new ArrayList(); diff --git a/qadevOOo/runner/convwatch/DBHelper.java b/qadevOOo/runner/convwatch/DBHelper.java index 00d08b45fae8..1a13fd071093 100644 --- a/qadevOOo/runner/convwatch/DBHelper.java +++ b/qadevOOo/runner/convwatch/DBHelper.java @@ -29,8 +29,6 @@ import java.util.StringTokenizer; class ShareConnection { private Connection m_aConnection = null; - public ShareConnection() - {} public Connection getConnection() { diff --git a/qadevOOo/runner/convwatch/PixelCounter.java b/qadevOOo/runner/convwatch/PixelCounter.java index 240e973e3282..21b2632bbaa5 100644 --- a/qadevOOo/runner/convwatch/PixelCounter.java +++ b/qadevOOo/runner/convwatch/PixelCounter.java @@ -31,10 +31,6 @@ abstract class CountPixel class CountNotWhite extends CountPixel { - public CountNotWhite() - { - } - @Override public void count(int pixel) { @@ -53,10 +49,6 @@ class CountNotWhite extends CountPixel class CountNotBlack extends CountPixel { - public CountNotBlack() - { - } - @Override public void count(int pixel) { diff --git a/qadevOOo/runner/graphical/PixelCounter.java b/qadevOOo/runner/graphical/PixelCounter.java index b0b9e41d7e66..e9220257a05c 100644 --- a/qadevOOo/runner/graphical/PixelCounter.java +++ b/qadevOOo/runner/graphical/PixelCounter.java @@ -30,11 +30,6 @@ abstract class CountPixel class CountNotWhite extends CountPixel { - public CountNotWhite() - { - } - - @Override public void count(final int pixel) { @@ -63,11 +58,6 @@ class CountNotWhite extends CountPixel class CountNotBlack extends CountPixel { - public CountNotBlack() - { - } - - @Override public void count(final int pixel) { diff --git a/qadevOOo/runner/graphical/TimeHelper.java b/qadevOOo/runner/graphical/TimeHelper.java index 1905e6acf554..4d7e826848b5 100644 --- a/qadevOOo/runner/graphical/TimeHelper.java +++ b/qadevOOo/runner/graphical/TimeHelper.java @@ -39,9 +39,6 @@ public class TimeHelper private int m_nMilliSeconds; private long m_nRealMilliSeconds; - public TimeHelper() - {} - public void start() { Calendar cal = Calendar.getInstance(); diff --git a/qadevOOo/runner/helper/PropertyHandlerFactroy.java b/qadevOOo/runner/helper/PropertyHandlerFactroy.java index fe8595e9b8d9..74f16d86783c 100644 --- a/qadevOOo/runner/helper/PropertyHandlerFactroy.java +++ b/qadevOOo/runner/helper/PropertyHandlerFactroy.java @@ -22,10 +22,6 @@ import com.sun.star.lang.XSingleComponentFactory; public class PropertyHandlerFactroy implements XSingleComponentFactory{ - /** Creates a new instance of PropertyHandlerFactroy */ - public PropertyHandlerFactroy() { - } - public Object createInstanceWithArgumentsAndContext(Object[] obj, com.sun.star.uno.XComponentContext xComponentContext) throws com.sun.star.uno.Exception { return new PropertyHandlerImpl(); diff --git a/qadevOOo/runner/helper/PropertyHandlerImpl.java b/qadevOOo/runner/helper/PropertyHandlerImpl.java index 7fd2fb011e36..a00eee233940 100644 --- a/qadevOOo/runner/helper/PropertyHandlerImpl.java +++ b/qadevOOo/runner/helper/PropertyHandlerImpl.java @@ -27,10 +27,6 @@ import com.sun.star.inspection.XPropertyHandler; */ public class PropertyHandlerImpl implements XPropertyHandler{ - /** Creates a new instance of PropertyHandlerImpl */ - public PropertyHandlerImpl() { - } - /** * This method currently does nothing * @param ActuatingPropertyName the id of the actuating property. diff --git a/qadevOOo/runner/helper/UnoProvider.java b/qadevOOo/runner/helper/UnoProvider.java index 5c4ae5ac5b6c..78430d195bf3 100644 --- a/qadevOOo/runner/helper/UnoProvider.java +++ b/qadevOOo/runner/helper/UnoProvider.java @@ -49,10 +49,6 @@ import com.sun.star.uno.XComponentContext; */ public class UnoProvider implements AppProvider { - public UnoProvider(){ - - } - /** * Close existing office: calls disposeManager() * @param param The test parameters. diff --git a/qadevOOo/runner/org/openoffice/RunnerService.java b/qadevOOo/runner/org/openoffice/RunnerService.java index 3f50ccffb19c..fcd425617fcf 100644 --- a/qadevOOo/runner/org/openoffice/RunnerService.java +++ b/qadevOOo/runner/org/openoffice/RunnerService.java @@ -56,13 +56,6 @@ public class RunnerService implements XJob, XServiceInfo, static public final String __implName = "org.openoffice.RunnerService"; static private XMultiServiceFactory xMSF = null; - /** - * ct'tor - * Construct an own office provider for tests - */ - public RunnerService() { - } - public Object execute(NamedValue[] args) { // construct valid arguments from the given stuff int arg_length=args.length; diff --git a/qadevOOo/runner/util/AccessibilityTools.java b/qadevOOo/runner/util/AccessibilityTools.java index 5ca0b9bbead4..c700000d7d8f 100644 --- a/qadevOOo/runner/util/AccessibilityTools.java +++ b/qadevOOo/runner/util/AccessibilityTools.java @@ -34,10 +34,6 @@ public class AccessibilityTools { public static XAccessible SearchedAccessible = null; private static boolean debug = false; - public AccessibilityTools() { - //done = false; - } - public static XAccessible getAccessibleObject(XInterface xObject) { return UnoRuntime.queryInterface(XAccessible.class, xObject); } diff --git a/qadevOOo/runner/util/XLayerImpl.java b/qadevOOo/runner/util/XLayerImpl.java index 351450292536..3b2ac9ca4fd8 100644 --- a/qadevOOo/runner/util/XLayerImpl.java +++ b/qadevOOo/runner/util/XLayerImpl.java @@ -22,9 +22,6 @@ public class XLayerImpl implements com.sun.star.configuration.backend.XLayer { private boolean wasCalled = false; - public XLayerImpl() { - } - public void readData(com.sun.star.configuration.backend.XLayerHandler xLayerHandler) throws com.sun.star.lang.NullPointerException, com.sun.star.lang.WrappedTargetException, com.sun.star.configuration.backend.MalformedDataException { wasCalled = true; } -- cgit