commit | 7dc24df960527df8ff7504485d55952c9a63fc58 | [log] [tgz] |
---|---|---|
author | Cowtowncoder <tatu.saloranta@iki.fi> | Tue Jun 16 15:38:05 2015 -0700 |
committer | Cowtowncoder <tatu.saloranta@iki.fi> | Tue Jun 16 15:38:05 2015 -0700 |
tree | c77b4bda5f1f37d09b3863846079da5b1fc5e9cb | |
parent | 6b1d2167b5af3a902d9169395c2b920a7966ecc1 [diff] |
Add toString() for ObjectIdGenerator.IdKey
diff --git a/src/main/java/com/fasterxml/jackson/annotation/ObjectIdGenerator.java b/src/main/java/com/fasterxml/jackson/annotation/ObjectIdGenerator.java index 5897cd1..dd4936c 100644 --- a/src/main/java/com/fasterxml/jackson/annotation/ObjectIdGenerator.java +++ b/src/main/java/com/fasterxml/jackson/annotation/ObjectIdGenerator.java
@@ -177,5 +177,10 @@ IdKey other = (IdKey) o; return (other.key.equals(key)) && (other.type == type) && (other.scope == scope); } + + @Override + public String toString() { + return String.format("[ObjectId: key=%s, type=%s, scope=%s]", key, type, scope); + } } }