Improve code readability and structure

- Fix exception when trying to place an item without one selected
- Add access modifiers to all class members
- Add `final` to all variables if applicable
- Add `TestBehaviour` to the machines to test the event system
- Convert classes to records where appropriate
- Change `Function<T, T>` to `Consumer<T>`
- Change non generic methods in the `EventHandler` class to generic methods
- Remove unused imports
- Other minor improvements
This commit is contained in:
Stone_Red
2022-03-18 18:10:24 +01:00
parent cde4b91ec5
commit ce2d26b762
25 changed files with 113 additions and 125 deletions
+14
View File
@@ -0,0 +1,14 @@
<component name="InspectionProjectProfileManager">
<profile version="1.0">
<option name="myName" value="Project Default" />
<inspection_tool class="MavenPackageUpdate" enabled="true" level="WARNING" enabled_by_default="true">
<option name="excludeList">
<list>
<option value="org.openjfx:javafx-fxml" />
<option value="org.junit.jupiter:junit-jupiter-api" />
<option value="org.junit.jupiter:junit-jupiter-engine" />
</list>
</option>
</inspection_tool>
</profile>
</component>