credhub icon indicating copy to clipboard operation
credhub copied to clipboard

Sonar lint fixes

Open swalchemist opened this issue 1 year ago • 1 comments
trafficstars

Mitigates a handful of SonarLint findings (codes for each are given in the commit messages). Also includes a new test to cover some of the modified code, and some related refactoring.

There are also a large number of changes to migrate some of the tests to JUnit 5 and improve how they assert on throwing an exception. Note that the @Test(expected = ... instances were migrated because this was required to use JUnit 5, but the JUnit 3 style exception assertions that use try/catch are not yet migrated, in order to reduce the volume of changes in this PR.

This was a draft PR until #679 was merged first.

swalchemist avatar Jan 20 '24 02:01 swalchemist

We have created an issue in Pivotal Tracker to manage this. Unfortunately, the Pivotal Tracker project is private so you may be unable to view the contents of the story.

The labels on this github issue will be updated when the story is started.

cf-gitbot avatar Jan 20 '24 02:01 cf-gitbot