Timeline for Is it still a code smell if a class knows all subtypes but not using instanceof and downcasting?
Current License: CC BY-SA 4.0
2 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Mar 28 at 19:35 | comment | added | JimmyJames | "There is an actual bug in your code. System.identityHashCode" and it is totally unnecessary. sword == tool will be true if and only if sword and tool reference the same object. | |
| Mar 28 at 8:11 | history | answered | Arseni Mourzenko | CC BY-SA 4.0 |