Skip to content

Conversation

@JingsongLi
Copy link
Contributor

No description provided.

* override types that were lost in round-trip conversion.
*/
class FixupTypes extends TypeUtil.CustomOrderSchemaVisitor<Type> {
public abstract class FixupTypes extends TypeUtil.CustomOrderSchemaVisitor<Type> {
Copy link
Contributor

Choose a reason for hiding this comment

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

Sorry this class is so complicated. It's really just a Schema with partner visitor, but that pattern wasn't around when we needed to write this, so I used the custom order visitor. I should eventually go clean these up!

@rdblue
Copy link
Contributor

rdblue commented Aug 27, 2020

@JingsongLi, thanks for working on this. I think it's a good idea. The only problem is that this moves the FixupTypes class to API. I'd rather not publish that in the API module, which we maintain with stricter guarantees because it is a user-facing API (core is a developer-facing API). Can you move it to core instead?

@rdblue rdblue removed the API label Aug 28, 2020
@rdblue rdblue merged commit 87eb219 into apache:master Aug 28, 2020
@JingsongLi JingsongLi deleted the type-fixup branch November 5, 2020 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants