-
Notifications
You must be signed in to change notification settings - Fork 624
Closed
Description
MCP requests can either be a number or a string. At the moment we store it as an object of whatever JSON-B returns to us. This has a few problems:
- it makes it hard to compare ids for equality
2
is a different id to"2"
- however, we're not sure what type we use to represent the id internally, so we don't know how it implements
equals
- in particular,
new BigInteger(2)
is not equal toLong.valueOf(2)
which is not equal toInteger.valueOf(2)
Create a class that can hold either of these, but nothing else and which implements equals
and hashCode
reliably and use it to store the ID of a request.
Metadata
Metadata
Assignees
Labels
No labels