mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-26 02:19:48 -05:00
Fix build error
Former-commit-id: d2af8d0e9ebf658ed37971983da21bfd68fa3019
This commit is contained in:
1 parent
138b5d7388
commit
fb32d36dde
1 file changed
+5
-2
@@ -1,10 +1,10 @@
|
||||
package org.maxgamer.quickshop;
|
||||
|
||||
import lombok.Cleanup;
|
||||
import lombok.Getter;
|
||||
import org.bukkit.configuration.file.YamlConfiguration;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.InputStreamReader;
|
||||
|
||||
@@ -20,7 +20,6 @@ public class BuildInfo {
|
||||
private final String pomArtifactId;
|
||||
|
||||
public BuildInfo(@NotNull QuickShop plugin) {
|
||||
@Cleanup
|
||||
InputStream inputStream = plugin.getResource("BUILDINFO");
|
||||
if (inputStream == null) {
|
||||
buildId = "Unknown";
|
||||
@@ -42,5 +41,9 @@ public class BuildInfo {
|
||||
pomVersion = buildInfo.getString("pom-version", "Unknown");
|
||||
pomGruopId = buildInfo.getString("pom-groupid", "Unknown");
|
||||
pomArtifactId = buildInfo.getString("pom-artifactid", "Unknown");
|
||||
try {
|
||||
inputStream.close();
|
||||
} catch (IOException ignored) {
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user