Skip to content

Conversation

@pjfanning
Copy link
Member

  • follow up to use instanceof that avoids explicit cast #5390
  • there are probably changes that can be made in test code and also some changes in main source but the remaining instances there often involve fairly big reordering of the code

if (ann instanceof AnnotatedClass) {
JsonTypeInfo.As inclusion = typeInfo.getInclusionType();
if (inclusion == JsonTypeInfo.As.EXTERNAL_PROPERTY && (ann instanceof AnnotatedClass)) {
if (inclusion == JsonTypeInfo.As.EXTERNAL_PROPERTY) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same instanceof checked 2 lines earlier

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants