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

Adding the default constructor for MockSerializationResult. #607

Merged

Conversation

renanigt
Copy link
Contributor

I change MockSerializationResultTest to use the default constructor. May be ?

@@ -48,6 +53,13 @@ public XStreamBuilderImpl(XStreamConverters converters, TypeNameExtractor extrac
this.extractor = extractor;
}

public static XStreamBuilder cleanInstance(Converter...converters) {
Copy link
Member

Choose a reason for hiding this comment

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

where are you using it? why do we need this method?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's used on default constructor...
Because this method is on XStreamBuilderFactory that is a class of test folder.

So when we create the vraptor jar, test folder is discarted and I can't use it.

Copy link
Member

Choose a reason for hiding this comment

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

so change XStreamBuilderFactory to be @Deprecated and make it delegate to this method.

Copy link
Member

Choose a reason for hiding this comment

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

Why not just to remove the XStreamBuilderFactor?
(since it's a src/test class, it will not break compatibility)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I did this in the other PR, but @lucascs cited:
"Rollback this change. VRaptor is released, we cannot simply remove a class without bumping the major release version."

Copy link
Member

Choose a reason for hiding this comment

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

this is an src/test util class... no problems removing it, right @lucascs?

Copy link
Member

Choose a reason for hiding this comment

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

👍

@renanigt
Copy link
Contributor Author

Done.
Is it like you were thinking ? @lucascs

What do you think ? @Turini @garcia-jj

@renanigt
Copy link
Contributor Author

I agree that we don't need the XStreamBuilderFactory.

I'll wait for the best solution, if we remove the XStreamBuilderFactory or just turn it as Deprecated with @deprecated from javadoc as your suggestion.

@renanigt
Copy link
Contributor Author

What do you think ? @Turini @lucascs @garcia-jj

Remove the class XStreamBuilderFactory or just turn it as Deprecated with @deprecated from javadoc as @Turini's suggestion ?

@garcia-jj
Copy link
Member

Deprecated with a note what's the new method, and that will be dropped in
next major release.

@Turini
Copy link
Member

Turini commented Jun 18, 2014

why we can't remove it? this is just a src/test class

@garcia-jj
Copy link
Member

Ow, right. Classes under test folder isn't exported to jar. You are right.

I've changed my mind. Remove it.

@renanigt
Copy link
Contributor Author

So, may I remove it ?

@Turini
Copy link
Member

Turini commented Jun 18, 2014

please

@renanigt
Copy link
Contributor Author

Done.

@garcia-jj
Copy link
Member

Ready to merge?

@lucascs
Copy link
Member

lucascs commented Jun 19, 2014

@renanigt
Copy link
Contributor Author

I never know the meaning of 🐑 ⛵ ! rsrs 😕

@garcia-jj
Copy link
Member

@renanigt Me, Lucas and Turini (and other devs) have commiter permission on vraptor repository. But instead of simple commit into master, we commit any change in a branch and send a pull request. With this, other devs can review our code to suggest improvements.

When all reviews are done and the code is ready to merge, we use a random emoji to say "Yeah, you can merge".

🐑 emoji have the same sound that ship, that mean "ship it, send your code".

garcia-jj added a commit that referenced this pull request Jun 19, 2014
…tionResult

Adding the default constructor for MockSerializationResult.
@garcia-jj garcia-jj merged commit de16e31 into caelum:master Jun 19, 2014
@garcia-jj
Copy link
Member

Thank you.

@renanigt
Copy link
Contributor Author

Thanks for the explanation. rsrs @garcia-jj

Thanks for the learning here with you ( @Turini @garcia-jj @lucascs ).

@renanigt renanigt deleted the defaultConstructorMockSerializationResult branch June 19, 2014 13:43
@renanigt renanigt restored the defaultConstructorMockSerializationResult branch June 19, 2014 13:43
@renanigt renanigt deleted the defaultConstructorMockSerializationResult branch June 19, 2014 13:43
@renanigt renanigt restored the defaultConstructorMockSerializationResult branch June 19, 2014 13:44
@renanigt renanigt deleted the defaultConstructorMockSerializationResult branch July 2, 2014 18:19
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.

4 participants