Skip to content

Commit

Permalink
Migrate google java format from 1.7 -> 1.21.0
Browse files Browse the repository at this point in the history
Summary:
X-link: facebookexternal/OculusManufacturing#524

X-link: facebookexternal/fbpay#3

X-link: facebook/screenshot-tests-for-android#324

X-link: pytorch/executorch#1771

X-link: facebook/igl#68

X-link: facebook/mariana-trench#153

X-link: facebook/fresco#2757

X-link: facebook/litho#974

X-link: facebook/react-native#42754

X-link: facebook/hhvm#9431

X-link: WhatsApp/eqwalizer#52

X-link: facebookincubator/spectrum#1858

X-link: fbsamples/metapay#1

X-link: facebookincubator/fbjni#95

X-link: facebookincubator/Battery-Metrics#30

X-link: facebook/ktfmt#440

X-link: facebook/flipper#5456

X-link: facebook/hermes#1290

X-link: facebook/TextLayoutBuilder#35

X-link: facebook/SoLoader#122

allow-large-files

This diff migrates google java format form 1.7 to 1.21.0. This update will allow for new language features from java 17 and 21. This diff also formats all necessary files.

 Changelog:
    [Internal][Changed] - Updated format from google-java-format 1.7 -> 1.21.0

Reviewed By: IanChilds

Differential Revision: D52786052

fbshipit-source-id: b675ae215084f340b93dfe628e329e696ca0616e
  • Loading branch information
j-bahr authored and facebook-github-bot committed Mar 23, 2024
1 parent 7a3e898 commit d190aa6
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,9 @@ public void validate() throws InvalidDeploymentArgumentException {
logAndThrow(
"Invalid Tag Postfix: "
+ tag
+ "\nMake sure the tag length is less than 20 characters, and using lowercase letters, numbers and dash only.");
+ "\n"
+ "Make sure the tag length is less than 20 characters, and using lowercase letters,"
+ " numbers and dash only.");
}
if (!validConfigStorage()) {
logAndThrow("Invalid Configuration Storage: " + configStorage);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ public PCEValidatorAPIReturn start(final @NonNull DeploymentParams deployment) {
if (credentialValidationResult.isSuccessful == false) {
return new PCEValidatorAPIReturn(
PCEValidatorAPIReturn.Status.STATUS_FAIL,
"The AWS access key ID and secret access key provided are invalid. Please review the information provided and try again.");
"The AWS access key ID and secret access key provided are invalid. Please review the"
+ " information provided and try again.");
}

final ShellCommandRunner.CommandRunnerResult pceValidationResult =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ public void validate() throws InvalidDeploymentArgumentException {
logAndThrow(
"Invalid Tag Postfix: "
+ tag
+ "\nMake sure the tag length is less than 20 characters, and using lowercase letters, numbers and dash only.");
+ "\n"
+ "Make sure the tag length is less than 20 characters, and using lowercase letters,"
+ " numbers and dash only.");
}
if (!validConfigStorage()) {
logAndThrow("Invalid Configuration Storage: " + configStorage);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ private ValidatorResult validateVpcQuotaPerRegion(DeploymentParams deploymentPar
return new ValidatorResult(
false,
String.format(
"VPC limit is at peak in region %s. Contact your Meta representatives for more information if needed.",
"VPC limit is at peak in region %s. Contact your Meta representatives for more"
+ " information if needed.",
deploymentParams.region));
}

Expand Down

0 comments on commit d190aa6

Please sign in to comment.