Skip to content

Commit

Permalink
Don't use .toString() directly on Type, use .name().toString()
Browse files Browse the repository at this point in the history
  • Loading branch information
gsmet committed Aug 26, 2020
1 parent 36a2d73 commit 7800adb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ CapabilityBuildItem register() {
AnnotationValue usingValue = deserializeInstance.value("using");
if (usingValue != null) {
// the Deserializers are constructed internally by Jackson using a no-args constructor
reflectiveClass.produce(new ReflectiveClassBuildItem(false, false, usingValue.asClass().toString()));
reflectiveClass.produce(new ReflectiveClassBuildItem(false, false, usingValue.asClass().name().toString()));
}
}

Expand All @@ -129,7 +129,7 @@ CapabilityBuildItem register() {
AnnotationValue usingValue = serializeInstance.value("using");
if (usingValue != null) {
// the Deserializers are constructed internally by Jackson using a no-args constructor
reflectiveClass.produce(new ReflectiveClassBuildItem(false, false, usingValue.asClass().toString()));
reflectiveClass.produce(new ReflectiveClassBuildItem(false, false, usingValue.asClass().name().toString()));
}
}
}
Expand Down

0 comments on commit 7800adb

Please sign in to comment.