From 3a4fddfdcbb7d15464b81620a72c64bf4b5908a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B7=B2=E5=AE=9A=20yi?= <3151794331@qq.com> Date: Thu, 27 Jul 2023 07:58:20 +0000 Subject: [PATCH 1/2] fix:It seems that the Scanner instance is not closed. I try to fix this, please review the PR, thanks! --- .gitpod.yml | 10 ++++++++++ starterAIs/Starter.java | 1 + 2 files changed, 11 insertions(+) create mode 100644 .gitpod.yml diff --git a/.gitpod.yml b/.gitpod.yml new file mode 100644 index 0000000..4efa528 --- /dev/null +++ b/.gitpod.yml @@ -0,0 +1,10 @@ +# This configuration file was automatically generated by Gitpod. +# Please adjust to your needs (see https://www.gitpod.io/docs/introduction/learn-gitpod/gitpod-yaml) +# and commit this file to your remote git repository to share the goodness with others. + +# Learn more from ready-to-use templates: https://www.gitpod.io/docs/introduction/getting-started/quickstart + +tasks: + - init: mvn install -DskipTests=false + + diff --git a/starterAIs/Starter.java b/starterAIs/Starter.java index abf1755..5c8732e 100644 --- a/starterAIs/Starter.java +++ b/starterAIs/Starter.java @@ -97,5 +97,6 @@ public static void main(String args[]) { } } } + in.close(); } } \ No newline at end of file From 3e9ed49e82737574d94451673c5f932f67f41fea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B7=B2=E5=AE=9A=20yi?= <3151794331@qq.com> Date: Sun, 30 Jul 2023 06:53:23 +0000 Subject: [PATCH 2/2] fix:Scanner in unclosed --- config/level2/Boss.java | 1 + 1 file changed, 1 insertion(+) diff --git a/config/level2/Boss.java b/config/level2/Boss.java index 53ffeaf..d8b7711 100644 --- a/config/level2/Boss.java +++ b/config/level2/Boss.java @@ -128,6 +128,7 @@ public static void main(String args[]) { } } } + in.close(); } private static boolean canWind(int mana) {