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 --- wizards/com/sun/star/wizards/common/Desktop.java | 5 ----- wizards/com/sun/star/wizards/common/Helper.java | 5 ----- wizards/com/sun/star/wizards/common/JavaTools.java | 11 ----------- wizards/com/sun/star/wizards/document/OfficeDocument.java | 7 ------- wizards/com/sun/star/wizards/ui/ImageList.java | 2 -- wizards/com/sun/star/wizards/ui/event/AbstractListener.java | 5 ----- wizards/com/sun/star/wizards/ui/event/CommonListener.java | 5 ----- 7 files changed, 40 deletions(-) (limited to 'wizards/com') diff --git a/wizards/com/sun/star/wizards/common/Desktop.java b/wizards/com/sun/star/wizards/common/Desktop.java index a9f029372790..5d71d92ba150 100644 --- a/wizards/com/sun/star/wizards/common/Desktop.java +++ b/wizards/com/sun/star/wizards/common/Desktop.java @@ -36,11 +36,6 @@ import com.sun.star.i18n.XCharacterClassification; public class Desktop { - /** Creates a new instance of Desktop */ - public Desktop() - { - } - public static XDesktop getDesktop(XMultiServiceFactory xMSF) { com.sun.star.uno.XInterface xInterface = null; diff --git a/wizards/com/sun/star/wizards/common/Helper.java b/wizards/com/sun/star/wizards/common/Helper.java index e5e009d8879e..cc5c2434f3ba 100644 --- a/wizards/com/sun/star/wizards/common/Helper.java +++ b/wizards/com/sun/star/wizards/common/Helper.java @@ -35,11 +35,6 @@ import com.sun.star.util.XNumberFormatter; public class Helper { - /** Creates a new instance of Helper */ - public Helper() - { - } - public static long convertUnoDatetoInteger(com.sun.star.util.Date DateValue) { java.util.Calendar oCal = java.util.Calendar.getInstance(); diff --git a/wizards/com/sun/star/wizards/common/JavaTools.java b/wizards/com/sun/star/wizards/common/JavaTools.java index 940b17d52530..f4bb359335f4 100644 --- a/wizards/com/sun/star/wizards/common/JavaTools.java +++ b/wizards/com/sun/star/wizards/common/JavaTools.java @@ -28,17 +28,6 @@ import java.net.URL; public class JavaTools { - /** Creates a new instance of JavaTools */ - public JavaTools() - { - } - - - - - - - public static String[] ArrayOutOfMultiDimArray(String _sMultiDimArray[][], int _index) { String[] sRetArray = null; diff --git a/wizards/com/sun/star/wizards/document/OfficeDocument.java b/wizards/com/sun/star/wizards/document/OfficeDocument.java index 890a373a87a8..f78ae3c47966 100644 --- a/wizards/com/sun/star/wizards/document/OfficeDocument.java +++ b/wizards/com/sun/star/wizards/document/OfficeDocument.java @@ -52,13 +52,6 @@ public class OfficeDocument private XWindowPeer xWindowPeer; - /** Creates a new instance of OfficeDocument */ - public OfficeDocument() - { - } - - - public static void dispose(XMultiServiceFactory xMSF, XComponent xComponent) { try diff --git a/wizards/com/sun/star/wizards/ui/ImageList.java b/wizards/com/sun/star/wizards/ui/ImageList.java index f77a2845acaf..78c19ea3400f 100644 --- a/wizards/com/sun/star/wizards/ui/ImageList.java +++ b/wizards/com/sun/star/wizards/ui/ImageList.java @@ -101,8 +101,6 @@ public class ImageList implements XItemEventBroadcaster, ListDataListener private class OMouseListener implements XMouseListener { - public OMouseListener() - {} public void mousePressed(MouseEvent arg0) { focus(getImageIndexFor(getSelected())); diff --git a/wizards/com/sun/star/wizards/ui/event/AbstractListener.java b/wizards/com/sun/star/wizards/ui/event/AbstractListener.java index 295bcab56e14..0a2058379ddf 100644 --- a/wizards/com/sun/star/wizards/ui/event/AbstractListener.java +++ b/wizards/com/sun/star/wizards/ui/event/AbstractListener.java @@ -43,11 +43,6 @@ public class AbstractListener private HashMap mHashtable = new HashMap(); - /** Creates a new instance of AbstractListener */ - public AbstractListener() - { - } - public void add(String componentName, String eventName, String methodName, Object target) { try diff --git a/wizards/com/sun/star/wizards/ui/event/CommonListener.java b/wizards/com/sun/star/wizards/ui/event/CommonListener.java index d0387f7533a6..8b455b517d44 100644 --- a/wizards/com/sun/star/wizards/ui/event/CommonListener.java +++ b/wizards/com/sun/star/wizards/ui/event/CommonListener.java @@ -23,11 +23,6 @@ import com.sun.star.lang.EventObject; public class CommonListener extends AbstractListener implements XActionListener, XItemListener, XTextListener, EventNames, XWindowListener, XMouseListener, XFocusListener, XKeyListener { - /** Creates a new instance of CommonListener */ - public CommonListener() - { - } - /** * Implementation of com.sun.star.awt.XActionListener */ -- cgit