FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Refactorized ClosestPair.java in order to be compliant with java sun rules by MarisaAfuera · Pull Request #502 · TheAlgorithms/Java · GitHub

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

Merged
varunu28 merged 1 commit into
TheAlgorithms:masterfrom
MarisaAfuera:master
Sep 9, 2018
Merged

Refactorized ClosestPair.java in order to be compliant with java sun rules#502
varunu28 merged 1 commit into
TheAlgorithms:masterfrom
MarisaAfuera:master

Conversation

Copy link
Copy Markdown
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.

Copy link
Copy Markdown
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

varunu28 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality
  • 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 commented Sep 6, 2018 via email

Copy link
Copy Markdown
Contributor Author

…rules

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

Refactorized ClosestPair.java. Finding nearest cartesian points.

Copy link
Copy Markdown
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 commented Sep 9, 2018 via email

Copy link
Copy Markdown
Contributor Author

varunu28 merged commit 77259b7 into TheAlgorithms:master Sep 9, 2018
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL