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

Added support for JsonHttpLogger #3

Merged
merged 1 commit into from Sep 24, 2015
Merged

Added support for JsonHttpLogger #3

merged 1 commit into from Sep 24, 2015

Conversation

whiskeysierra
Copy link
Collaborator

No description provided.

@@ -28,7 +28,7 @@
import java.util.List;
import java.util.Map;

public class DefaultHttpLogger implements HttpLogger {
public final class DefaultHttpLogger implements HttpLogger {

Choose a reason for hiding this comment

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

Why final?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Why final?

Because it's not intended to be subclassed, is it? If somebody needs stuff from it he/she is free to use composition.

Choose a reason for hiding this comment

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

You never know what crazy things clients of the library want to do, maybe they want to extend this class - so why prevent it?

Copy link
Contributor

Choose a reason for hiding this comment

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

In that case they should open a pull request and give a good reason for the change :)

whiskeysierra added a commit that referenced this pull request Sep 24, 2015
Added support for JsonHttpLogger
@whiskeysierra whiskeysierra merged commit 146a0d9 into zalando:master Sep 24, 2015
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.

None yet

3 participants