JacksonHoggard / voodoo2d

👹 2D Java Game Engine built in OpenGL
MIT License
131 stars 50 forks source link

Some small refactoring. #28

Closed StylianosBairamis closed 1 year ago

StylianosBairamis commented 1 year ago

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: