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

prime-factors: convert to use instance methods #415

Merged
merged 1 commit into from
Apr 7, 2017

Conversation

stkent
Copy link
Contributor

@stkent stkent commented Apr 5, 2017

Closes #363.

@@ -1,5 +1,4 @@
import org.junit.Test;
import org.junit.Ignore;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Unused due to test suite parametrization.

{3L, Arrays.asList(3L)},
{1L, emptyList()},
{2L, singletonList(2L)},
{3L, singletonList(3L)},
Copy link
Contributor Author

Choose a reason for hiding this comment

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

All suggestions from IntelliJ.

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm more used to seeing this as Collections.emptyList() and Collections.singletonList() without the static import. That might make it more clear to someone who hasn't encountered them before?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍 sure, will revert!

Copy link
Contributor

@FridaTveit FridaTveit left a comment

Choose a reason for hiding this comment

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

Looks great! :)

{3L, Arrays.asList(3L)},
{1L, emptyList()},
{2L, singletonList(2L)},
{3L, singletonList(3L)},
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm more used to seeing this as Collections.emptyList() and Collections.singletonList() without the static import. That might make it more clear to someone who hasn't encountered them before?

@stkent stkent force-pushed the 363-prime-factors-instance-method branch from 90712de to e3c19cf Compare April 6, 2017 17:49
Copy link
Contributor

@FridaTveit FridaTveit left a comment

Choose a reason for hiding this comment

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

Looks great! Thanks @stkent! :)

@FridaTveit FridaTveit merged commit 10784fe into master Apr 7, 2017
@stkent stkent deleted the 363-prime-factors-instance-method branch April 22, 2017 18:41
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