Skip to content

Commit b3d2a3d

Browse files
committed
Use most significant bits for short component uuid
1 parent aa7e1cf commit b3d2a3d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

patternfx-core/src/main/java/com/techsenger/patternfx/core/AbstractDescriptor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ protected AbstractDescriptor(ComponentName name) {
5757
protected AbstractDescriptor(ComponentName name, UUID uuid) {
5858
this.name = name;
5959
this.uuid = uuid;
60-
long least32bits = uuid.getLeastSignificantBits() & 0xFFFFFFFFL;
61-
String shortUuid = String.format("%08X", least32bits);
60+
long most32bits = uuid.getMostSignificantBits() >>> 32;
61+
String shortUuid = String.format("%08X", most32bits);
6262
this.fullName = name.getText() + "@" + shortUuid;
6363
this.logPrefix = logPrefixResolver.apply(this);
6464
}

0 commit comments

Comments
 (0)