HasMap to String, Asset instead of Long Asset

This commit is contained in:
Bas de Jong
2025-09-30 11:53:13 +02:00
parent d1da49ad1d
commit 57bd6ded6f
7 changed files with 10 additions and 2 deletions

View File

@@ -0,0 +1,8 @@
<component name="InspectionProjectProfileManager">
<profile version="1.0">
<option name="myName" value="Project Default" />
<inspection_tool class="AutoCloseableResource" enabled="true" level="WARNING" enabled_by_default="true">
<option name="METHOD_MATCHER_CONFIG" value="java.util.Formatter,format,java.io.Writer,append,com.google.common.base.Preconditions,checkNotNull,org.hibernate.Session,close,java.io.PrintWriter,printf,java.io.PrintStream,printf,java.lang.foreign.Arena,ofAuto,java.lang.foreign.Arena,global,org.toop.framework.audio.AudioPlayer,play" />
</inspection_tool>
</profile>
</component>

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -5,7 +5,7 @@ import org.toop.framework.SnowflakeGenerator;
import java.nio.file.Path; import java.nio.file.Path;
public class Asset { public class Asset {
private Long id; private Long id; // IS this needed?
private String name; private String name;
private Path assetPath; private Path assetPath;
private String asset; private String asset;

View File

@@ -4,7 +4,7 @@ import java.util.HashMap;
public class AssetManager { public class AssetManager {
private HashMap<Long, Asset> assets = new HashMap<>(); private HashMap<String, Asset> assets = new HashMap<>();
public AssetManager() { public AssetManager() {