Skip to content

Conversation

stokito
Copy link
Contributor

@stokito stokito commented May 21, 2019

While investigated and debugged the library I found some small performance issues.
Also I was lack of some documentation so I added it to JavaDoc

stokito added 7 commits May 21, 2019 19:55
toString() may be accidentally called from logger and the secret password will be written to logs. This can be a big security problem so it's better to avoid using a password in toString() method
…ueOf(long value, int scale).

Unit Test was also changed to use BigDecimal.equals() instead of compareTo() so the scale is also checked.
1000 cents was replaced with 1001 cent just to check that no any rounding problems
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.4%) to 19.186% when pulling 8bebf0d on stokito:develop into b1db3e6 on Adyen:develop.

@rkewlani
Copy link
Contributor

rkewlani commented May 22, 2019

Hi @stokito,
Thanks for the PR. Can you please update unit test cases as well for your changes ?
Regards,
Rajni
Adyen

@stokito
Copy link
Contributor Author

stokito commented May 22, 2019

Hi @rkewlani off course, I covered and checked that it's covered before changes. The coverage decreased just because it's less code now.

@Aleffio Aleffio merged commit ecbff76 into Adyen:develop May 23, 2019
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.

6 participants