Null checks clutter the code, and should be removed when not needed. AudioSystem.getMixerInfo() will not return null, so we don't have to check if it returns null. AudioSystem.getMixerInfo() may return an empty array.
There are no dependencies for this change
What kind of change does this PR introduce? (check at least one)
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[x ] Code style update
[ x] Refactor
[ ] Build-related changes
[ ] This change requires a documentation update
[ ] Other, please describe:
Does this PR introduce a breaking change? (check one)
[ ] Yes
[ x] No
Has This Been Tested?
[x ] Yes
[ ] No
Checklist:
[X] My code follows the style guidelines of this project
[X] I have performed a self-review of my own code
[X] I have commented my code, particularly in hard-to-understand areas
[X] I have made corresponding changes to the documentation
[X] My changes generate no new warnings
[X] I have added tests that prove my fix is effective or that my feature works
[X] New and existing unit tests pass locally with my changes
[X] Any dependent changes have been merged and published in downstream modules
…check for it.
Description
Null checks clutter the code, and should be removed when not needed. AudioSystem.getMixerInfo() will not return null, so we don't have to check if it returns null. AudioSystem.getMixerInfo() may return an empty array.
There are no dependencies for this change
What kind of change does this PR introduce? (check at least one)
Does this PR introduce a breaking change? (check one)
Has This Been Tested?
Checklist: