修复一些代码中的 typo (#4190)

This commit is contained in:
Wulian233
2025-08-04 20:30:36 +08:00
committed by GitHub
parent a0ddaf6766
commit bb3d03fc72
9 changed files with 11 additions and 11 deletions

View File

@@ -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);
}
});
}

View File

@@ -93,7 +93,7 @@ public final class AggregatedObservableList<T> {
/**
* 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<T> {
/**
* 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)}

View File

@@ -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();
}

View File

@@ -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;

View File

@@ -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\\.<init>\\(java\\.util\\.jar\\.Manifest\\)'|sun\\.security\\.util\\.ManifestEntryVerifier\\.<init>\\(Ljava/util/jar/Manifest;\\)V)"),
// Manually triggerd debug crash
// Manually triggered debug crash
DEBUG_CRASH("Manually triggered debug crash"),
CONFIG("Failed loading config file (?<file>.*?) of type (.*?) for modid (?<id>.*)", "id", "file"),
// Fabric gives some warnings
FABRIC_WARNINGS("(Warnings were found!|Incompatible mod set!|Incompatible mods found!)(.*?)[\\n\\r]+(?<reason>[^\\[]+)\\[", "reason"),
// Game crashed when ticking entity
ENTITY("Entity Type: (?<type>.*)[\\w\\W\\n\\r]*?Entity's Exact location: (?<location>.*)", "type", "location"),
// Game crashed when tesselating block model
// Game crashed when tessellating block model
BLOCK("Block: (?<type>.*)[\\w\\W\\n\\r]*?Block location: (?<location>.*)", "type", "location"),
// Cannot find native libraries
UNSATISFIED_LINK_ERROR("java\\.lang\\.UnsatisfiedLinkError: Failed to locate library: (?<name>.*)", "name"),

View File

@@ -173,7 +173,7 @@ public class LaunchOptions implements Serializable {
}
/**
* Is inital game window fullscreen.
* Is initial game window fullscreen.
*/
public boolean isFullscreen() {
return fullscreen;

View File

@@ -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));

View File

@@ -254,7 +254,7 @@ public final class MultiMCInstancePatch {
/**
* <p>Core methods transforming MultiMCModpack to Official Version Scheme.</p>
*
* <p>Mose of the information can be transformed in a lossless manner, except for some inputs.
* <p>Most of the information can be transformed in a lossless manner, except for some inputs.
* See to do marks below for more information</p>
*
* @param patches List of all Json-Patch.

View File

@@ -75,7 +75,7 @@
<module name="FallThrough"/> <!-- switch fallthrough with statement not allowed http://checkstyle.sourceforge.net/config_coding.html#FallThrough -->
<module name="IllegalInstantiation"/> <!-- Must not use const of certain types (Activity, Fragment): http://checkstyle.sourceforge.net/config_coding.html#IllegalInstantiation -->
<!-- Size Limitiations -->
<!-- Size Limitations -->
<module name="ParameterNumber"><!-- max params for method http://checkstyle.sourceforge.net/config_sizes.html#ParameterNumber -->
<property name="max" value="10"/>
<property name="ignoreOverriddenMethods" value="true"/>