We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dcfb0cc commit 3414458Copy full SHA for 3414458
src/test/java/com/fasterxml/jackson/databind/type/TestTypeFactory.java
@@ -239,7 +239,7 @@ public void testCanonicalWithSpaces()
239
{
240
TypeFactory tf = TypeFactory.defaultInstance();
241
Object objects = new TreeMap<Object, Object>() { }; // to get subtype
242
- String reflectTypeName = objects.getClass().getGenericSuperclass().getTypeName();
+ String reflectTypeName = objects.getClass().getGenericSuperclass().toString();
243
JavaType t1 = tf.constructType(objects.getClass().getGenericSuperclass());
244
// This will throw an Exception if you don't remove all white spaces from the String.
245
JavaType t2 = tf.constructFromCanonical(reflectTypeName);
0 commit comments