Skip to content

Commit

Permalink
fix a minor java 8 regression
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Sep 19, 2017
1 parent dcfb0cc commit 3414458
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ public void testCanonicalWithSpaces()
{
TypeFactory tf = TypeFactory.defaultInstance();
Object objects = new TreeMap<Object, Object>() { }; // to get subtype
String reflectTypeName = objects.getClass().getGenericSuperclass().getTypeName();
String reflectTypeName = objects.getClass().getGenericSuperclass().toString();
JavaType t1 = tf.constructType(objects.getClass().getGenericSuperclass());
// This will throw an Exception if you don't remove all white spaces from the String.
JavaType t2 = tf.constructFromCanonical(reflectTypeName);
Expand Down

0 comments on commit 3414458

Please sign in to comment.