forked from amazingfate/loongoffice
odk: simplify deprecated XTypeProvider.getImplementationId
Change-Id: I48b3206bf9c2186c991637b58120285c8c0ee00a
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user