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

Fix Sonar problems including possible negative result of Math.abs #32

Merged
merged 1 commit into from
Jan 7, 2021

Conversation

sleberknight
Copy link
Member

  • Extract String constant from repeated literal value
  • Fix bug in RandomWaitStrategy#computeSleepTime that could have caused
    a problem due to the possibility that a call to Math.abs could
    return a negative value in the case that Random.nextLong() returned
    Long.MIN_VALUE

* Extract String constant from repeated literal value
* Fix bug in RandomWaitStrategy#computeSleepTime that could have caused
  a problem due to the possibility that a call to Math.abs could
  return a negative value in the case that Random.nextLong() returned
  Long.MIN_VALUE
@sleberknight sleberknight added bug Something isn't working code cleanup Fix issues reported by Sonar or any other code analysis tools labels Jan 7, 2021
@sleberknight sleberknight added this to the 0.5.0 milestone Jan 7, 2021
@sleberknight sleberknight requested a review from chrisrohr January 7, 2021 03:43
@chrisrohr chrisrohr merged commit 83d115a into master Jan 7, 2021
@chrisrohr chrisrohr deleted the fix-possible-negative-absolute-value branch January 7, 2021 03:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working code cleanup Fix issues reported by Sonar or any other code analysis tools
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants