Commits

md_5 authored c87a3104aed
SPIGOT-2499: Remove final from ItemStack hashCode
No tags

src/main/java/org/bukkit/inventory/ItemStack.java

Modified
352 352 }
353 353
354 354 return itemStack;
355 355 } catch (CloneNotSupportedException e) {
356 356 throw new Error(e);
357 357 }
358 358 }
359 359
360 360 @Override
361 361 @Utility
362 - public final int hashCode() {
362 + public int hashCode() {
363 363 int hash = 1;
364 364
365 365 hash = hash * 31 + getTypeId();
366 366 hash = hash * 31 + getAmount();
367 367 hash = hash * 31 + (getDurability() & 0xffff);
368 368 hash = hash * 31 + (hasItemMeta() ? (meta == null ? getItemMeta().hashCode() : meta.hashCode()) : 0);
369 369
370 370 return hash;
371 371 }
372 372

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut