summaryrefslogtreecommitdiff
path: root/wizards
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-03-10 16:43:26 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-03-10 17:40:00 +0100
commit11b205d0dccea07cef4afd753710cd6b057186b3 (patch)
treebf603d276ae58eec22120f1d635df0bc16ad396b /wizards
parenta3cdc0c68b59ba206647594979dbc86c51ef2a95 (diff)
wizards: simplify deprecated XTypeProvider.getImplementationId
Change-Id: I9ac8fc460fbdb957f3cae4c2cde42962daca0052
Diffstat (limited to 'wizards')
-rw-r--r--wizards/com/sun/star/wizards/form/CallFormWizard.java26
-rw-r--r--wizards/com/sun/star/wizards/query/CallQueryWizard.java26
-rw-r--r--wizards/com/sun/star/wizards/report/CallReportWizard.java26
-rw-r--r--wizards/com/sun/star/wizards/table/CallTableWizard.java26
4 files changed, 4 insertions, 100 deletions
diff --git a/wizards/com/sun/star/wizards/form/CallFormWizard.java b/wizards/com/sun/star/wizards/form/CallFormWizard.java
index 937fb1aa5835..f990142eae61 100644
--- a/wizards/com/sun/star/wizards/form/CallFormWizard.java
+++ b/wizards/com/sun/star/wizards/form/CallFormWizard.java
@@ -128,33 +128,9 @@ public class CallFormWizard
return (booleanSupportsService);
}
- /** This method returns an array of bytes, that can be used to
- * unambiguously distinguish between two sets of types, e.g.
- * to realise hashing functionality when the object is introspected.
- * Two objects that return the same ID also have to return
- * the same set of types in getTypes(). If an unique
- * implementation Id cannot be provided this method has to
- * return an empty sequence. Important: If the object
- * aggregates other objects the ID has to be unique for the
- * whole combination of objects.
- * @return Array of bytes, in order to distinguish between two sets.
- */
public byte[] getImplementationId()
{
- byte[] byteReturn =
- {
- };
-
- try
- {
- byteReturn = (PropertyNames.EMPTY_STRING + this.hashCode()).getBytes();
- }
- catch (Exception exception)
- {
- System.err.println(exception);
- }
-
- return (byteReturn);
+ return new byte[0];
}
/** Return the class name of the component.
diff --git a/wizards/com/sun/star/wizards/query/CallQueryWizard.java b/wizards/com/sun/star/wizards/query/CallQueryWizard.java
index 5ddd437aceb7..315e763d7503 100644
--- a/wizards/com/sun/star/wizards/query/CallQueryWizard.java
+++ b/wizards/com/sun/star/wizards/query/CallQueryWizard.java
@@ -133,34 +133,10 @@ public class CallQueryWizard
return (booleanSupportsService);
}
- /** This method returns an array of bytes, that can be used to
- * unambiguously distinguish between two sets of types, e.g.
- * to realise hashing functionality when the object is introspected.
- * Two objects that return the same ID also have to return
- * the same set of types in getTypes(). If an unique
- * implementation Id cannot be provided this method has to
- * return an empty sequence. Important: If the object
- * aggregates other objects the ID has to be unique for the
- * whole combination of objects.
- * @return Array of bytes, in order to distinguish between two sets.
- */
@Override
public byte[] getImplementationId()
{
- byte[] byteReturn =
- {
- };
-
- try
- {
- byteReturn = (PropertyNames.EMPTY_STRING + this.hashCode()).getBytes();
- }
- catch (Exception exception)
- {
- System.err.println(exception);
- }
-
- return (byteReturn);
+ return new byte[0];
}
/** Return the class name of the component.
diff --git a/wizards/com/sun/star/wizards/report/CallReportWizard.java b/wizards/com/sun/star/wizards/report/CallReportWizard.java
index 4f284a06a989..af9623c4f526 100644
--- a/wizards/com/sun/star/wizards/report/CallReportWizard.java
+++ b/wizards/com/sun/star/wizards/report/CallReportWizard.java
@@ -160,33 +160,9 @@ public class CallReportWizard
return (booleanSupportsService);
}
- /** This method returns an array of bytes, that can be used to
- * unambiguously distinguish between two sets of types, e.g.
- * to realise hashing functionality when the object is introspected.
- * Two objects that return the same ID also have to return
- * the same set of types in getTypes(). If an unique
- * implementation Id cannot be provided this method has to
- * return an empty sequence. Important: If the object
- * aggregates other objects the ID has to be unique for the
- * whole combination of objects.
- * @return Array of bytes, in order to distinguish between two sets.
- */
public byte[] getImplementationId()
{
- byte[] byteReturn =
- {
- };
-
- try
- {
- byteReturn = (PropertyNames.EMPTY_STRING + this.hashCode()).getBytes();
- }
- catch (Exception e)
- {
- Logger.getLogger(CallReportWizard.class.getName()).log(Level.SEVERE, null, e);
- }
-
- return (byteReturn);
+ return new byte[0];
}
/** Return the class name of the component.
diff --git a/wizards/com/sun/star/wizards/table/CallTableWizard.java b/wizards/com/sun/star/wizards/table/CallTableWizard.java
index 1860c3c7f166..c092d0f416ab 100644
--- a/wizards/com/sun/star/wizards/table/CallTableWizard.java
+++ b/wizards/com/sun/star/wizards/table/CallTableWizard.java
@@ -135,33 +135,9 @@ public class CallTableWizard
return (booleanSupportsService);
}
- /** This method returns an array of bytes, that can be used to
- * unambiguously distinguish between two sets of types, e.g.
- * to realise hashing functionality when the object is introspected.
- * Two objects that return the same ID also have to return
- * the same set of types in getTypes(). If an unique
- * implementation Id cannot be provided this method has to
- * return an empty sequence. Important: If the object
- * aggregates other objects the ID has to be unique for the
- * whole combination of objects.
- * @return Array of bytes, in order to distinguish between two sets.
- */
public byte[] getImplementationId()
{
- byte[] byteReturn =
- {
- };
-
- try
- {
- byteReturn = (PropertyNames.EMPTY_STRING + this.hashCode()).getBytes();
- }
- catch (Exception exception)
- {
- System.err.println(exception);
- }
-
- return (byteReturn);
+ return new byte[0];
}
/** Return the class name of the component.