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

Simplify boolean expressions with an simpler and equivalent. #104

Closed
wants to merge 0 commits into from
Closed

Simplify boolean expressions with an simpler and equivalent. #104

wants to merge 0 commits into from

Conversation

arturobernalg
Copy link
Member

@arturobernalg arturobernalg commented Aug 8, 2021

  • Simplify boolean expression with equivalent.

@coveralls
Copy link

coveralls commented Aug 8, 2021

Coverage Status

Coverage remained the same at 99.658% when pulling 1ab94b5 on arturobernalg:feature/improvement into 84c7090 on apache:master.

@@ -38,7 +38,7 @@
*
* @param numValues Number of values of the function to compute.
* @param cache Cached values.
* @throw IllegalArgumentException if {@code n < 0}.
* @throw CombinatoricsException if {@code n < 0}.
Copy link
Contributor

Choose a reason for hiding this comment

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

CombinatoricsException is package private; it should not be exposed in the javadoc. It extends IllegalArgumentException so the javadoc is still valid.

Copy link
Member Author

Choose a reason for hiding this comment

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

Changed

primeNumbers.add(Integer.valueOf(5));
primeNumbers.add(Integer.valueOf(7));
primeNumbers.add(Integer.valueOf(11));
primeNumbers.add(2);
Copy link
Contributor

Choose a reason for hiding this comment

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

The current code makes the boxing explicit. Please avoid auto-boxing.

Copy link
Member Author

Choose a reason for hiding this comment

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

Changed

@@ -41,7 +41,7 @@
*
* @param numValues Number of values of the function to compute.
* @param cache Cached values.
* @throw IllegalArgumentException if {@code n < 0}.
* @throw CombinatoricsException if {@code n < 0}.
Copy link
Contributor

Choose a reason for hiding this comment

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

You have left this CombinatoricsException exposed in the API.

Copy link
Member Author

Choose a reason for hiding this comment

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

Changed
TY

@aherbert
Copy link
Contributor

This is now only simplifying boolean expressions. Can you update the commit message to reflect that and then correct the formatting as per #103

@arturobernalg arturobernalg changed the title Improvements: Simplify boolean expressions with an simpler and equivalen Aug 13, 2021
@arturobernalg arturobernalg changed the title Simplify boolean expressions with an simpler and equivalen Simplify boolean expressions with an simpler and equivalent. Aug 13, 2021
@arturobernalg
Copy link
Member Author

This is now only simplifying boolean expressions. Can you update the commit message to reflect that and then correct the formatting as per #103

HI @aherbert
Done
TY

@aherbert
Copy link
Contributor

You changed the commit message but did not fix formatting to change 8 spaces to 4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants