summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-10-15 14:21:23 +0200
committerNoel Grandin <noel@peralex.com>2014-10-16 08:15:45 +0200
commit4b5cb7ef35648eb33d14f40a7f4cc1b47aea53a4 (patch)
tree71e1d356eebe52733057dc448c87b2aaddacfa4c
parent0f86ae06896d01b5a7b7903e9c5ef3c473aefb7c (diff)
remove unnecessary catch block
Change-Id: Id33384cee3444924e7e8de7d496f117f120b1876
-rw-r--r--connectivity/qa/connectivity/tools/AbstractDatabase.java10
-rw-r--r--wizards/com/sun/star/wizards/common/ConfigNode.java6
-rw-r--r--wizards/com/sun/star/wizards/common/IRenderer.java2
-rw-r--r--wizards/com/sun/star/wizards/report/IReportBuilderLayouter.java28
-rw-r--r--wizards/com/sun/star/wizards/ui/ButtonList.java4
-rw-r--r--wizards/com/sun/star/wizards/ui/event/DataAware.java8
6 files changed, 26 insertions, 32 deletions
diff --git a/connectivity/qa/connectivity/tools/AbstractDatabase.java b/connectivity/qa/connectivity/tools/AbstractDatabase.java
index 08b710b67159..3207dafcd6e8 100644
--- a/connectivity/qa/connectivity/tools/AbstractDatabase.java
+++ b/connectivity/qa/connectivity/tools/AbstractDatabase.java
@@ -123,14 +123,8 @@ public abstract class AbstractDatabase implements DatabaseAccess
if (m_databaseDocumentFile != null)
{
- try
- {
- final File file = new File(m_databaseDocumentFile);
- file.delete();
- }
- catch (Exception e)
- {
- }
+ final File file = new File(m_databaseDocumentFile);
+ file.delete();
}
}
diff --git a/wizards/com/sun/star/wizards/common/ConfigNode.java b/wizards/com/sun/star/wizards/common/ConfigNode.java
index 4803ec1ef810..0d2abd84c966 100644
--- a/wizards/com/sun/star/wizards/common/ConfigNode.java
+++ b/wizards/com/sun/star/wizards/common/ConfigNode.java
@@ -35,9 +35,9 @@ public interface ConfigNode
* to be used in a tree like way, reading objects and subobjects and so on,
* it might be practical to be able to pass an extra parameter, for a free use.
*/
- public void readConfiguration(Object configurationView, Object param);
+ void readConfiguration(Object configurationView, Object param);
- public void writeConfiguration(Object configurationView, Object param);
+ void writeConfiguration(Object configurationView, Object param);
- public void setRoot(Object root);
+ void setRoot(Object root);
}
diff --git a/wizards/com/sun/star/wizards/common/IRenderer.java b/wizards/com/sun/star/wizards/common/IRenderer.java
index c4513ea75ab1..c704ed6f49df 100644
--- a/wizards/com/sun/star/wizards/common/IRenderer.java
+++ b/wizards/com/sun/star/wizards/common/IRenderer.java
@@ -26,5 +26,5 @@ package com.sun.star.wizards.common;
public interface IRenderer
{
- public String render(Object object);
+ String render(Object object);
}
diff --git a/wizards/com/sun/star/wizards/report/IReportBuilderLayouter.java b/wizards/com/sun/star/wizards/report/IReportBuilderLayouter.java
index 6ccb7c5db9f3..8f1446f0e1fc 100644
--- a/wizards/com/sun/star/wizards/report/IReportBuilderLayouter.java
+++ b/wizards/com/sun/star/wizards/report/IReportBuilderLayouter.java
@@ -29,78 +29,78 @@ public interface IReportBuilderLayouter
* This name identifies the layout in the internal access list.
* @return the internal layout name.
*/
- public String getName();
+ String getName();
/**
* Get the localized name of the layout, which is shown in the layout page of the report wizard.
* This name comes out of the resource and will be translate in different languages.
* @return localized name of the layout.
*/
- public String getLocalizedName();
+ String getLocalizedName();
/**
* For Landscape give nOrientation == com.sun.star.wizards.report.ReportLayouter.SOOPTLANDSCAPE
* All other numbers are interpreted as portrait format.
*/
- public void setPageOrientation(int nOrientation);
+ void setPageOrientation(int nOrientation);
/**
* dispose the layouter
*/
- public void dispose();
+ void dispose();
/**
* Set the table name of the report
* This is the name to the database table.
* @param _nType something of com.sun.star.sdb.CommandType
*/
- public void setTableName(int _nType, String TableName);
+ void setTableName(int _nType, String TableName);
/**
* Insert the field names, these are the field names out of a given datebase table
*/
- public void insertFieldNames(final String[] FieldNames);
+ void insertFieldNames(final String[] FieldNames);
/**
* Insert the field type (Varchar, int, ...) as internal an int representation.
*/
- public void insertFieldTypes(int[] FieldTypes);
+ void insertFieldTypes(int[] FieldTypes);
/**
* Insert the field width in count of chars as given in the database.
*/
- public void insertFieldWidths(int[] FieldWidths);
+ void insertFieldWidths(int[] FieldWidths);
/**
* Insert the titles of the field names. This names are free formed
*/
- public void insertFieldTitles(String[] _aFieldTitles);
+ void insertFieldTitles(String[] _aFieldTitles);
/**
* Insert the names of the groups, the group names are names out of the field names.
*
* If a group name is given here, it will not shown in the fields/titles, but must be in the field string list.
*/
- public void insertGroupNames(String[] _aGroupFieldNames);
+ void insertGroupNames(String[] _aGroupFieldNames);
/**
* Insert the names of the groups which should be used as sorting, the group names are names out of the field names.
*
* If a group name is given here, it will not shown in the fields/titles, but must be in the field string list.
*/
- public void insertSortingNames(String[][] _aSortFieldNames);
+ void insertSortingNames(String[][] _aSortFieldNames);
/**
* This method redraws the whole layout with all its content
*/
- public void layout();
+ void layout();
/**
* Initialize the current Layouter with data's out of an other Layouter.
*
* This Method copies the internal fields, groups and titles
*/
- public void initializeData(IReportBuilderLayouter aOtherLayouter);
+ void initializeData(IReportBuilderLayouter aOtherLayouter);
- public void loadAndSetBackgroundTemplate(String LayoutTemplatePath);
+ void loadAndSetBackgroundTemplate(String LayoutTemplatePath);
}
diff --git a/wizards/com/sun/star/wizards/ui/ButtonList.java b/wizards/com/sun/star/wizards/ui/ButtonList.java
index 90e0dee622cb..60cf7f77a4a8 100644
--- a/wizards/com/sun/star/wizards/ui/ButtonList.java
+++ b/wizards/com/sun/star/wizards/ui/ButtonList.java
@@ -610,14 +610,14 @@ public class ButtonList implements XItemEventBroadcaster, XActionListener
}
- public static interface IImageRenderer extends IRenderer
+ public interface IImageRenderer extends IRenderer
{
/**
* @return two resource ids for an image referenced in the imaglist resourcefile of the
* wizards project; The second one of them is designed to be used for High Contrast Mode.
*/
- public Object[] getImageUrls(Object listItem);
+ Object[] getImageUrls(Object listItem);
}
private static class SimpleCounterRenderer implements IRenderer
diff --git a/wizards/com/sun/star/wizards/ui/event/DataAware.java b/wizards/com/sun/star/wizards/ui/event/DataAware.java
index 1669d83a91be..057cf6d7cc24 100644
--- a/wizards/com/sun/star/wizards/ui/event/DataAware.java
+++ b/wizards/com/sun/star/wizards/ui/event/DataAware.java
@@ -156,7 +156,7 @@ public abstract class DataAware {
}
public interface Listener {
- public void eventPerformed(Object event);
+ void eventPerformed(Object event);
}
/**
@@ -225,13 +225,13 @@ public abstract class DataAware {
* @param target the object to get the value from.
* @return the value from the given object.
*/
- public Object get(Object target);
+ Object get(Object target);
/**
* sets a value to the given object.
* @param value the value to set to the object.
* @param target the object to set the value to.
*/
- public void set(Object value, Object target);
+ void set(Object value, Object target);
/**
* checks if this Value object can handle
* the given object type as a target.
@@ -239,7 +239,7 @@ public abstract class DataAware {
* @return true if the given class is acceptable for
* the Value object. False if not.
*/
- public boolean isAssignable(Class<?> type);
+ boolean isAssignable(Class<?> type);
}
/**