diff options
author | Bertram Nolte <bnolte@openoffice.org> | 2002-01-11 09:31:50 +0000 |
---|---|---|
committer | Bertram Nolte <bnolte@openoffice.org> | 2002-01-11 09:31:50 +0000 |
commit | e033bb94c54924dd351949acbd262f30cefc0252 (patch) | |
tree | 225b99041726b0c92ae4b07bffcaca2ec568d7ce /odk/examples/java/MinimalComponent | |
parent | f3d54328b415011015efd169df14318d867fe5e2 (diff) |
#96251# Changed method getImplementationId(), so that it will return an empty byte array.
Diffstat (limited to 'odk/examples/java/MinimalComponent')
-rw-r--r-- | odk/examples/java/MinimalComponent/MinimalComponent.java | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/odk/examples/java/MinimalComponent/MinimalComponent.java b/odk/examples/java/MinimalComponent/MinimalComponent.java index 958e478992e3..4d19813fc1b4 100644 --- a/odk/examples/java/MinimalComponent/MinimalComponent.java +++ b/odk/examples/java/MinimalComponent/MinimalComponent.java @@ -2,9 +2,9 @@ * * $RCSfile: MinimalComponent.java,v $ * - * $Revision: 1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: bnolte $ $Date: 2001-11-09 09:07:08 $ + * last change: $Author: bnolte $ $Date: 2002-01-11 10:31:50 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -73,7 +73,7 @@ import com.sun.star.uno.Type; * factory for creating the service (<CODE>__getServiceFactory</CODE>) and a * method, that writes the information into the given registry key * (<CODE>__writeRegistryServiceInfo</CODE>). - * @version $Date: 2001-11-09 09:07:08 $ + * @version $Date: 2002-01-11 10:31:50 $ * @author Bertram Nolte */ public class MinimalComponent { @@ -179,15 +179,9 @@ public class MinimalComponent { * @return Array of bytes, in order to distinguish between two sets. */ public byte[] getImplementationId() { - byte[] byteReturn = {}; + byte[] byteReturn = {}; - try { - byteReturn = new String( "" + this.hashCode() ).getBytes(); - } catch( Exception exception ) { - System.err.println( exception ); - } - - return( byteReturn ); + return( byteReturn ); } } |