mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-20 03:35:51 +00:00
Apply suggestions from code review
Co-authored-by: svr333 <vanrompaey.senne@protonmail.com>
This commit is contained in:
parent
ecc0d6bb69
commit
ccd4d5bf65
@ -77,9 +77,9 @@ public final class Debug {
|
|||||||
* MyBenchmark.whileFindChars thrpt 5 3319022.018 ± 45663.898 ops/s
|
* MyBenchmark.whileFindChars thrpt 5 3319022.018 ± 45663.898 ops/s
|
||||||
* </code>
|
* </code>
|
||||||
*
|
*
|
||||||
* @param msg The message to send. For variables, you can pass "{}".
|
* @param msg The message to send. For variables, you can pass "{}"
|
||||||
* @param vars A varargs of the variables you wish to use.
|
* @param vars A varargs of the variables you wish to use
|
||||||
* @return The resulting String.
|
* @return The resulting String
|
||||||
*/
|
*/
|
||||||
private static @Nonnull String formatMessage(@Nonnull String msg, @Nonnull Object... vars) {
|
private static @Nonnull String formatMessage(@Nonnull String msg, @Nonnull Object... vars) {
|
||||||
int i = 0;
|
int i = 0;
|
||||||
@ -98,7 +98,7 @@ public final class Debug {
|
|||||||
* Set the current test case for this server.
|
* Set the current test case for this server.
|
||||||
* This will enable debug logging for this specific case which can be helpful by Slimefun or addon developers.
|
* This will enable debug logging for this specific case which can be helpful by Slimefun or addon developers.
|
||||||
*
|
*
|
||||||
* @param test The test case to enable or null to disable it.
|
* @param test The test case to enable or null to disable it
|
||||||
*/
|
*/
|
||||||
public static void setTestCase(@Nullable String test) {
|
public static void setTestCase(@Nullable String test) {
|
||||||
testCase = test;
|
testCase = test;
|
||||||
|
@ -11,7 +11,7 @@ import java.util.Locale;
|
|||||||
public enum TestCase {
|
public enum TestCase {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Cargo input testing. This will log what is going on with CARGO_INPUT_NODEs so that we can see what items are
|
* Cargo input testing. This will log what is going on with CARGO_INPUT_NODEs so that we can see what items are.
|
||||||
* being checked and why it is comparing IDs or meta.
|
* being checked and why it is comparing IDs or meta.
|
||||||
* This is helpful for us to check into why input nodes are taking a while for servers.
|
* This is helpful for us to check into why input nodes are taking a while for servers.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user