Format projects under :distribution:tools (#51226)

Opt-in the sub-projects of :distribution:tools for automatic formatting.
This commit is contained in:
Rory Hunter 2020-01-22 09:31:44 +00:00 committed by GitHub
parent ff22445364
commit a350bfaf8c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
26 changed files with 840 additions and 608 deletions

View file

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