summaryrefslogtreecommitdiff
path: root/jvmaccess
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-03-10 15:01:13 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-03-10 17:39:56 +0100
commit5d042ce18555a7397b46746844cdbd62cc96f5f3 (patch)
tree6317eba0bc8bec97d0148e1fc75f357fc9c6c64a /jvmaccess
parent7078dbb906fa2b5be38781a4141aba5fe279b3ad (diff)
jvmaccess: simplify deprecated XTypeProvider.getImplementationId
Change-Id: I2198f013ce94dc65a7c540a599ee7160ba8d9295
Diffstat (limited to 'jvmaccess')
-rw-r--r--jvmaccess/workbench/java/TestComponent.java8
1 files changed, 1 insertions, 7 deletions
diff --git a/jvmaccess/workbench/java/TestComponent.java b/jvmaccess/workbench/java/TestComponent.java
index f12dc29596d7..8e692a73b3f2 100644
--- a/jvmaccess/workbench/java/TestComponent.java
+++ b/jvmaccess/workbench/java/TestComponent.java
@@ -46,13 +46,7 @@ public final class TestComponent implements XTypeProvider, XServiceInfo, XMain {
}
public byte[] getImplementationId() {
- byte[] id = new byte[16];
- int n = hashCode();
- id[0] = (byte) (n & 0xFF);
- id[1] = (byte) ((n >> 8) & 0xFF);
- id[2] = (byte) ((n >> 16) & 0xFF);
- id[3] = (byte) ((n >> 24) & 0xFF);
- return id;
+ return new byte[0];
}
public String getImplementationName() {