odk: simplify deprecated XTypeProvider.getImplementationId

Change-Id: I48b3206bf9c2186c991637b58120285c8c0ee00a
This commit is contained in:
Stephan Bergmann
2014-03-10 15:07:12 +01:00
parent 5d042ce185
commit 271cd24927
5 changed files with 7 additions and 55 deletions

View File

@ -43,7 +43,6 @@ import com.sun.star.uno.Type;
public class TestComponentB implements XTypeProvider, XServiceInfo, XSomethingB {
static final String __serviceName= "com.sun.star.test.SomethingB";
static byte[] _implementationId;
private XComponentContext context;
private Object[] args;
@ -68,16 +67,8 @@ public class TestComponentB implements XTypeProvider, XServiceInfo, XSomethingB
return retValue;
}
//XTypeProvider
synchronized public byte[] getImplementationId( ) {
if (_implementationId == null) {
_implementationId= new byte[16];
int hash = hashCode();
_implementationId[0] = (byte)(hash & 0xff);
_implementationId[1] = (byte)((hash >>> 8) & 0xff);
_implementationId[2] = (byte)((hash >>> 16) & 0xff);
_implementationId[3] = (byte)((hash >>>24) & 0xff);
}
return _implementationId;
public byte[] getImplementationId( ) {
return new byte[0];
}
//XServiceInfo