Skip to content

Refactorized ClosestPair.java in order to be compliant with java sun rules #502

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

Merged
merged 1 commit into from
Sep 9, 2018

Conversation

MarisaAfuera
Copy link
Contributor

Refactorized ClosestPair.java: adding commets, eliminating unuseful parameters, reorganizing code lines to be less than 80 characteres, each variable declaration in one line.

I've deleted txt file to provide input data.

I've created a unit test class. To complete the tests I've created a auxiliary type Location.

@varunu28
Copy link
Contributor

@MarisaAfuera You can add the algorithm to the master right now but we are adding tests to Development branch in order to avoid confusion. So you can do either of the two below mentioned things:

  • Add only algorithm to master
  • Add algorithm and test both to Development and it will be merged to master in future.

Avoid creating another class for location. You can put it up in same file

Copy link
Contributor

@varunu28 varunu28 left a comment

Choose a reason for hiding this comment

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

  • You have to remove the test if you want to push this to master. Else you can follow the guidelines mentioned in Development branch and make a PR for that branch
  • Move the location class inside ClosestPair as we don't need a separate file for Location

@MarisaAfuera
Copy link
Contributor Author

MarisaAfuera commented Sep 6, 2018 via email

…rules

commit divideconquer\ClosesPair.java
Refactorized ClosestPair.java. Finding nearest cartesian points.

Refactorized ClosestPair.java. Finding nearest cartesian points.
@MarisaAfuera
Copy link
Contributor Author

I think I've made the requesting changes. Now in files changed tab only is showed ClosestPair.java. No test neither Location class are available.

Also I squash the commits with git rebase. @varunu28 Is everything right?

@MarisaAfuera
Copy link
Contributor Author

MarisaAfuera commented Sep 9, 2018 via email

@varunu28 varunu28 merged commit 77259b7 into TheAlgorithms:master Sep 9, 2018
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