Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove @message annotation from generated case classes #219

Merged
merged 1 commit into from
Jan 27, 2020

Conversation

cb372
Copy link
Member

@cb372 cb372 commented Jan 27, 2020

This annotation was only used for IDL generation, which we don't do anymore.

(also accidentally apply the formatter)

This annotation was only used for IDL generation, which we don't do
anymore.

(also accidentally apply the formatter)
@@ -206,7 +206,7 @@ object codegen {
nestedCoproducts.traverse(_.as[Stat])
).mapN {
case (args, prods, coprods) =>
val caseClass = q"@message final case class ${Type.Name(name)}(..$args)"
val caseClass = q"final case class ${Type.Name(name)}(..$args)"
Copy link
Member Author

Choose a reason for hiding this comment

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

Here is the change.

@@ -95,7 +95,7 @@ class ProtobufProtocolSpec extends Specification with ScalaCheck {
|
|object book {
|
|@message final case class Book(
|final case class Book(
Copy link
Member Author

Choose a reason for hiding this comment

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

Here is the update to the test.

Copy link
Member

@juanpedromoreno juanpedromoreno left a comment

Choose a reason for hiding this comment

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

🔥

@cb372 cb372 merged commit 9f405b3 into master Jan 27, 2020
@cb372 cb372 deleted the remove-message-annotation branch January 27, 2020 16:03
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