Skip to content

Fix: makefile error and compile warnings#22

Open
Cmd-GZ wants to merge 1 commit into
catabriga:masterfrom
Cmd-GZ:fix/makefile-error-and-compile-warning
Open

Fix: makefile error and compile warnings#22
Cmd-GZ wants to merge 1 commit into
catabriga:masterfrom
Cmd-GZ:fix/makefile-error-and-compile-warning

Conversation

@Cmd-GZ

@Cmd-GZ Cmd-GZ commented Jun 30, 2026

Copy link
Copy Markdown
Contributor
  1. Remove -source 1.6 -target 1.6 to fix error: Source/Target option 6 is no longer supported. Use 7 or later.
  2. Modify the jdk source in Dockerfile from java:openjdk-7-jdk to amazoncorretto:8
  3. Modify src/Graphwar/GameData.java:369 from new Integer(level) to level to fix src/Graphwar/GameData.java:369: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal nextPCs.add(new Integer(level));
  4. Replace Toolkit.getDefaultToolkit() with this in GlobalScreen.java:236 and MainMenuScreen.java:298 to fix warning: [deprecation] getFontMetrics(Font) in Toolkit has been deprecated

1. Remove -source 1.6 -target 1.6 to fix `error: Source/Target option 6 is no longer supported. Use 7 or later.`
2. Modify the jdk source in Dockerfile from java:openjdk-7-jdk to amazoncorretto:8
3. Modify `src/Graphwar/GameData.java:369` from `new Integer(level)` to `level` to fix src/Graphwar/GameData.java:369: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal nextPCs.add(new Integer(level));
4. Replace `Toolkit.getDefaultToolkit()` with `this` in `GlobalScreen.java:236` and `MainMenuScreen.java:298` to fix warning: [deprecation] getFontMetrics(Font) in Toolkit has been deprecated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant