Hello, iam currently trying to learn about code smells and refactoring, i used SonarLint as my tool to find code smells in the code.
Description
I have created a new type of exception named AudioFileException, so that a generic exception is not thrown from the method loadSound of the class AudioManager.
Also i have created a private constructor of AudioManager, in order to disable the default constructor because AudioManager is a utility class.
Fixes # (issue)
Type of change
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update
Checklist:
[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have added tests that prove my fix is effective or that my feature works
Hello, iam currently trying to learn about code smells and refactoring, i used SonarLint as my tool to find code smells in the code.
Description
I have created a new type of exception named AudioFileException, so that a generic exception is not thrown from the method loadSound of the class AudioManager.
Also i have created a private constructor of AudioManager, in order to disable the default constructor because AudioManager is a utility class.
Fixes # (issue)
Type of change
Checklist: