Skip to content

Commit 38da177

Browse files
committed
Splotless apply
1 parent d910895 commit 38da177

File tree

1 file changed

+16
-9
lines changed
  • JShellAPI/src/main/java/org/togetherjava/jshellapi

1 file changed

+16
-9
lines changed

JShellAPI/src/main/java/org/togetherjava/jshellapi/Config.java

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,33 +26,40 @@ private static boolean checkJShellWrapperImageName(String imageName) {
2626

2727
public Config {
2828
if (regularSessionTimeoutSeconds <= 0)
29-
throw new IllegalArgumentException("Invalid regularSessionTimeoutSeconds " + regularSessionTimeoutSeconds);
29+
throw new IllegalArgumentException(
30+
"Invalid regularSessionTimeoutSeconds " + regularSessionTimeoutSeconds);
3031
if (oneTimeSessionTimeoutSeconds <= 0)
31-
throw new IllegalArgumentException("Invalid oneTimeSessionTimeoutSeconds " + oneTimeSessionTimeoutSeconds);
32+
throw new IllegalArgumentException(
33+
"Invalid oneTimeSessionTimeoutSeconds " + oneTimeSessionTimeoutSeconds);
3234
if (evalTimeoutSeconds <= 0)
3335
throw new IllegalArgumentException("Invalid evalTimeoutSeconds " + evalTimeoutSeconds);
3436
if (evalTimeoutValidationLeeway <= 0)
35-
throw new IllegalArgumentException("Invalid evalTimeoutValidationLeeway " + evalTimeoutSeconds);
37+
throw new IllegalArgumentException(
38+
"Invalid evalTimeoutValidationLeeway " + evalTimeoutSeconds);
3639
if (sysOutCharLimit <= 0)
3740
throw new IllegalArgumentException("Invalid sysOutCharLimit " + sysOutCharLimit);
3841
if (maxAliveSessions <= 0)
3942
throw new IllegalArgumentException("Invalid maxAliveSessions " + maxAliveSessions);
4043
if (dockerMaxRamMegaBytes <= 0)
41-
throw new IllegalArgumentException("Invalid dockerMaxRamMegaBytes " + dockerMaxRamMegaBytes);
44+
throw new IllegalArgumentException(
45+
"Invalid dockerMaxRamMegaBytes " + dockerMaxRamMegaBytes);
4246
if (dockerCPUsUsage <= 0)
4347
throw new IllegalArgumentException("Invalid dockerCPUsUsage " + dockerCPUsUsage);
4448
if (dockerCPUSetCPUs != null && !dockerCPUSetCPUs.matches("[1-9]?\\d([-,]\\d?\\d)?"))
4549
throw new IllegalArgumentException("Invalid dockerCPUSetCPUs " + dockerCPUSetCPUs);
4650
if (schedulerSessionKillScanRateSeconds <= 0)
47-
throw new IllegalArgumentException(
48-
"Invalid schedulerSessionKillScanRateSeconds " + schedulerSessionKillScanRateSeconds);
51+
throw new IllegalArgumentException("Invalid schedulerSessionKillScanRateSeconds "
52+
+ schedulerSessionKillScanRateSeconds);
4953
if (dockerResponseTimeout <= 0)
50-
throw new IllegalArgumentException("Invalid dockerResponseTimeout " + dockerResponseTimeout);
54+
throw new IllegalArgumentException(
55+
"Invalid dockerResponseTimeout " + dockerResponseTimeout);
5156
if (dockerConnectionTimeout <= 0)
52-
throw new IllegalArgumentException("Invalid dockerConnectionTimeout " + dockerConnectionTimeout);
57+
throw new IllegalArgumentException(
58+
"Invalid dockerConnectionTimeout " + dockerConnectionTimeout);
5359

5460
if (!checkJShellWrapperImageName(jshellWrapperImageName)) {
55-
throw new IllegalArgumentException("Invalid jshellWrapperImageName " + jshellWrapperImageName);
61+
throw new IllegalArgumentException(
62+
"Invalid jshellWrapperImageName " + jshellWrapperImageName);
5663
}
5764
}
5865
}

0 commit comments

Comments
 (0)