diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/setting/Accounts.java b/HMCL/src/main/java/org/jackhuang/hmcl/setting/Accounts.java index 2dd47aca5..02b6ba6bc 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/setting/Accounts.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/setting/Accounts.java @@ -346,7 +346,7 @@ public final class Accounts { try { server.fetchMetadataResponse(); } catch (IOException e) { - LOG.warning("Failed to fetch authlib-injector server metdata: " + server, e); + LOG.warning("Failed to fetch authlib-injector server metadata: " + server, e); } }); } diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/util/AggregatedObservableList.java b/HMCL/src/main/java/org/jackhuang/hmcl/util/AggregatedObservableList.java index 6266b5ad8..0fe0d89fb 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/util/AggregatedObservableList.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/util/AggregatedObservableList.java @@ -93,7 +93,7 @@ public final class AggregatedObservableList { /** * Get the start index of this list inside the aggregated List. - * This is a private function. we can safely asume, that the list is in the map. + * This is a private function. we can safely assume, that the list is in the map. * * @param list the list in question * @return the start index of this list in the aggregated List @@ -114,7 +114,7 @@ public final class AggregatedObservableList { /** * Get the end index of this list inside the aggregated List. - * This is a private function. we can safely asume, that the list is in the map. + * This is a private function. we can safely assume, that the list is in the map. * * @param list the list in question * @param startIndex the start of the list (retrieve with {@link #getStartIndex(ObservableList)} diff --git a/HMCLCore/src/main/java/org/jackhuang/hmcl/download/GameBuilder.java b/HMCLCore/src/main/java/org/jackhuang/hmcl/download/GameBuilder.java index 4e7a2f705..4d2e3f5fd 100644 --- a/HMCLCore/src/main/java/org/jackhuang/hmcl/download/GameBuilder.java +++ b/HMCLCore/src/main/java/org/jackhuang/hmcl/download/GameBuilder.java @@ -70,7 +70,7 @@ public abstract class GameBuilder { } /** - * @return the task that can build thw whole Minecraft environment + * @return the task that can build the whole Minecraft environment */ public abstract Task buildAsync(); } diff --git a/HMCLCore/src/main/java/org/jackhuang/hmcl/event/Event.java b/HMCLCore/src/main/java/org/jackhuang/hmcl/event/Event.java index 08e321ae3..99fa51031 100644 --- a/HMCLCore/src/main/java/org/jackhuang/hmcl/event/Event.java +++ b/HMCLCore/src/main/java/org/jackhuang/hmcl/event/Event.java @@ -97,7 +97,7 @@ public class Event { private Result result = Result.DEFAULT; /** - * Retutns the value set as the result of this event + * Returns the value set as the result of this event */ public Result getResult() { return result; diff --git a/HMCLCore/src/main/java/org/jackhuang/hmcl/game/CrashReportAnalyzer.java b/HMCLCore/src/main/java/org/jackhuang/hmcl/game/CrashReportAnalyzer.java index f0d5c96ba..1d627e59a 100644 --- a/HMCLCore/src/main/java/org/jackhuang/hmcl/game/CrashReportAnalyzer.java +++ b/HMCLCore/src/main/java/org/jackhuang/hmcl/game/CrashReportAnalyzer.java @@ -90,14 +90,14 @@ public final class CrashReportAnalyzer { // Minecraft 1.16+Forge with crash because JDK-8273826 // https://github.com/McModLauncher/modlauncher/issues/91 MODLAUNCHER_8("java\\.lang\\.NoSuchMethodError: ('void sun\\.security\\.util\\.ManifestEntryVerifier\\.\\(java\\.util\\.jar\\.Manifest\\)'|sun\\.security\\.util\\.ManifestEntryVerifier\\.\\(Ljava/util/jar/Manifest;\\)V)"), - // Manually triggerd debug crash + // Manually triggered debug crash DEBUG_CRASH("Manually triggered debug crash"), CONFIG("Failed loading config file (?.*?) of type (.*?) for modid (?.*)", "id", "file"), // Fabric gives some warnings FABRIC_WARNINGS("(Warnings were found!|Incompatible mod set!|Incompatible mods found!)(.*?)[\\n\\r]+(?[^\\[]+)\\[", "reason"), // Game crashed when ticking entity ENTITY("Entity Type: (?.*)[\\w\\W\\n\\r]*?Entity's Exact location: (?.*)", "type", "location"), - // Game crashed when tesselating block model + // Game crashed when tessellating block model BLOCK("Block: (?.*)[\\w\\W\\n\\r]*?Block location: (?.*)", "type", "location"), // Cannot find native libraries UNSATISFIED_LINK_ERROR("java\\.lang\\.UnsatisfiedLinkError: Failed to locate library: (?.*)", "name"), diff --git a/HMCLCore/src/main/java/org/jackhuang/hmcl/game/LaunchOptions.java b/HMCLCore/src/main/java/org/jackhuang/hmcl/game/LaunchOptions.java index 7060a1379..310dbb241 100644 --- a/HMCLCore/src/main/java/org/jackhuang/hmcl/game/LaunchOptions.java +++ b/HMCLCore/src/main/java/org/jackhuang/hmcl/game/LaunchOptions.java @@ -173,7 +173,7 @@ public class LaunchOptions implements Serializable { } /** - * Is inital game window fullscreen. + * Is initial game window fullscreen. */ public boolean isFullscreen() { return fullscreen; diff --git a/HMCLCore/src/main/java/org/jackhuang/hmcl/mod/multimc/MultiMCInstanceConfiguration.java b/HMCLCore/src/main/java/org/jackhuang/hmcl/mod/multimc/MultiMCInstanceConfiguration.java index bd61ca231..1dcc2ca35 100644 --- a/HMCLCore/src/main/java/org/jackhuang/hmcl/mod/multimc/MultiMCInstanceConfiguration.java +++ b/HMCLCore/src/main/java/org/jackhuang/hmcl/mod/multimc/MultiMCInstanceConfiguration.java @@ -63,7 +63,7 @@ public final class MultiMCInstanceConfiguration implements ModpackManifest { private final MultiMCManifest mmcPack; MultiMCInstanceConfiguration(String defaultName, InputStream contentStream, MultiMCManifest mmcPack) throws IOException { - // instance.cfg is in .ini format. As it's like the .properties format, we use Properties to parse thie file. + // instance.cfg is in .ini format. As it's like the .properties format, we use Properties to parse this file. // Maybe this will provide some problems (and it does, such as https://github.com/HMCL-dev/HMCL/issues/2991), but this workaround works, doesn't it? Properties p = new Properties(); p.load(new InputStreamReader(contentStream, StandardCharsets.UTF_8)); diff --git a/HMCLCore/src/main/java/org/jackhuang/hmcl/mod/multimc/MultiMCInstancePatch.java b/HMCLCore/src/main/java/org/jackhuang/hmcl/mod/multimc/MultiMCInstancePatch.java index 97d8c8a5f..176a0c32c 100644 --- a/HMCLCore/src/main/java/org/jackhuang/hmcl/mod/multimc/MultiMCInstancePatch.java +++ b/HMCLCore/src/main/java/org/jackhuang/hmcl/mod/multimc/MultiMCInstancePatch.java @@ -254,7 +254,7 @@ public final class MultiMCInstancePatch { /** *

Core methods transforming MultiMCModpack to Official Version Scheme.

* - *

Mose of the information can be transformed in a lossless manner, except for some inputs. + *

Most of the information can be transformed in a lossless manner, except for some inputs. * See to do marks below for more information

* * @param patches List of all Json-Patch. diff --git a/config/checkstyle/checkstyle.xml b/config/checkstyle/checkstyle.xml index 49e40fa3d..f98540797 100644 --- a/config/checkstyle/checkstyle.xml +++ b/config/checkstyle/checkstyle.xml @@ -75,7 +75,7 @@ - +