mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-28 17:34:17 -04:00
Format projects under :distribution:tools (#51226)
Opt-in the sub-projects of :distribution:tools for automatic formatting.
This commit is contained in:
parent
ff22445364
commit
a350bfaf8c
26 changed files with 840 additions and 608 deletions
|
@ -66,5 +66,4 @@ public class JavaVersion {
|
|||
return 0;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -27,8 +27,7 @@ import java.util.Locale;
|
|||
*/
|
||||
final class JavaVersionChecker {
|
||||
|
||||
private JavaVersionChecker() {
|
||||
}
|
||||
private JavaVersionChecker() {}
|
||||
|
||||
/**
|
||||
* The main entry point. The exit code is 0 if the Java version is at least 1.8, otherwise the exit code is 1.
|
||||
|
@ -42,9 +41,10 @@ final class JavaVersionChecker {
|
|||
}
|
||||
if (JavaVersion.compare(JavaVersion.CURRENT, JavaVersion.JAVA_11) < 0) {
|
||||
final String message = String.format(
|
||||
Locale.ROOT,
|
||||
"the minimum required Java version is 11; your Java version from [%s] does not meet this requirement",
|
||||
System.getProperty("java.home"));
|
||||
Locale.ROOT,
|
||||
"the minimum required Java version is 11; your Java version from [%s] does not meet this requirement",
|
||||
System.getProperty("java.home")
|
||||
);
|
||||
errPrintln(message);
|
||||
exit(1);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue