修复一些代码中的 typo (#4190)
This commit is contained in:
@@ -346,7 +346,7 @@ public final class Accounts {
|
|||||||
try {
|
try {
|
||||||
server.fetchMetadataResponse();
|
server.fetchMetadataResponse();
|
||||||
} catch (IOException e) {
|
} 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);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ public final class AggregatedObservableList<T> {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the start index of this list inside the aggregated List.
|
* 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
|
* @param list the list in question
|
||||||
* @return the start index of this list in the aggregated List
|
* @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.
|
* 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 list the list in question
|
||||||
* @param startIndex the start of the list (retrieve with {@link #getStartIndex(ObservableList)}
|
* @param startIndex the start of the list (retrieve with {@link #getStartIndex(ObservableList)}
|
||||||
|
|||||||
@@ -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();
|
public abstract Task<?> buildAsync();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -97,7 +97,7 @@ public class Event {
|
|||||||
private Result result = Result.DEFAULT;
|
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() {
|
public Result getResult() {
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
@@ -90,14 +90,14 @@ public final class CrashReportAnalyzer {
|
|||||||
// Minecraft 1.16+Forge with crash because JDK-8273826
|
// Minecraft 1.16+Forge with crash because JDK-8273826
|
||||||
// https://github.com/McModLauncher/modlauncher/issues/91
|
// 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)"),
|
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"),
|
DEBUG_CRASH("Manually triggered debug crash"),
|
||||||
CONFIG("Failed loading config file (?<file>.*?) of type (.*?) for modid (?<id>.*)", "id", "file"),
|
CONFIG("Failed loading config file (?<file>.*?) of type (.*?) for modid (?<id>.*)", "id", "file"),
|
||||||
// Fabric gives some warnings
|
// Fabric gives some warnings
|
||||||
FABRIC_WARNINGS("(Warnings were found!|Incompatible mod set!|Incompatible mods found!)(.*?)[\\n\\r]+(?<reason>[^\\[]+)\\[", "reason"),
|
FABRIC_WARNINGS("(Warnings were found!|Incompatible mod set!|Incompatible mods found!)(.*?)[\\n\\r]+(?<reason>[^\\[]+)\\[", "reason"),
|
||||||
// Game crashed when ticking entity
|
// Game crashed when ticking entity
|
||||||
ENTITY("Entity Type: (?<type>.*)[\\w\\W\\n\\r]*?Entity's Exact location: (?<location>.*)", "type", "location"),
|
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"),
|
BLOCK("Block: (?<type>.*)[\\w\\W\\n\\r]*?Block location: (?<location>.*)", "type", "location"),
|
||||||
// Cannot find native libraries
|
// Cannot find native libraries
|
||||||
UNSATISFIED_LINK_ERROR("java\\.lang\\.UnsatisfiedLinkError: Failed to locate library: (?<name>.*)", "name"),
|
UNSATISFIED_LINK_ERROR("java\\.lang\\.UnsatisfiedLinkError: Failed to locate library: (?<name>.*)", "name"),
|
||||||
|
|||||||
@@ -173,7 +173,7 @@ public class LaunchOptions implements Serializable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Is inital game window fullscreen.
|
* Is initial game window fullscreen.
|
||||||
*/
|
*/
|
||||||
public boolean isFullscreen() {
|
public boolean isFullscreen() {
|
||||||
return fullscreen;
|
return fullscreen;
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ public final class MultiMCInstanceConfiguration implements ModpackManifest {
|
|||||||
private final MultiMCManifest mmcPack;
|
private final MultiMCManifest mmcPack;
|
||||||
|
|
||||||
MultiMCInstanceConfiguration(String defaultName, InputStream contentStream, MultiMCManifest mmcPack) throws IOException {
|
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?
|
// 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();
|
Properties p = new Properties();
|
||||||
p.load(new InputStreamReader(contentStream, StandardCharsets.UTF_8));
|
p.load(new InputStreamReader(contentStream, StandardCharsets.UTF_8));
|
||||||
|
|||||||
@@ -254,7 +254,7 @@ public final class MultiMCInstancePatch {
|
|||||||
/**
|
/**
|
||||||
* <p>Core methods transforming MultiMCModpack to Official Version Scheme.</p>
|
* <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>
|
* See to do marks below for more information</p>
|
||||||
*
|
*
|
||||||
* @param patches List of all Json-Patch.
|
* @param patches List of all Json-Patch.
|
||||||
|
|||||||
@@ -75,7 +75,7 @@
|
|||||||
<module name="FallThrough"/> <!-- switch fallthrough with statement not allowed http://checkstyle.sourceforge.net/config_coding.html#FallThrough -->
|
<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 -->
|
<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 -->
|
<module name="ParameterNumber"><!-- max params for method http://checkstyle.sourceforge.net/config_sizes.html#ParameterNumber -->
|
||||||
<property name="max" value="10"/>
|
<property name="max" value="10"/>
|
||||||
<property name="ignoreOverriddenMethods" value="true"/>
|
<property name="ignoreOverriddenMethods" value="true"/>
|
||||||
|
|||||||
Reference in New Issue
Block a user