From 90eca40bf55c7a4573c105a6ec8b073f26ce1ec3 Mon Sep 17 00:00:00 2001 From: Jeff Bahr Date: Sat, 23 Mar 2024 16:07:04 -0700 Subject: [PATCH] Migrate google java format from 1.7 -> 1.21.0 (#52) Summary: X-link: https://github.com/facebookexternal/OculusManufacturing/pull/524 X-link: https://github.com/facebookexternal/fbpay/pull/3 X-link: https://github.com/facebook/screenshot-tests-for-android/pull/324 X-link: https://github.com/pytorch/executorch/pull/1771 X-link: https://github.com/facebook/igl/pull/68 X-link: https://github.com/facebook/mariana-trench/pull/153 X-link: https://github.com/facebook/fresco/pull/2757 X-link: https://github.com/facebook/litho/pull/974 X-link: https://github.com/facebook/react-native/pull/42754 X-link: https://github.com/facebook/hhvm/pull/9431 Pull Request resolved: https://github.com/WhatsApp/eqwalizer/pull/52 X-link: https://github.com/facebookincubator/spectrum/pull/1858 X-link: https://github.com/fbsamples/metapay/pull/1 X-link: https://github.com/facebookincubator/fbjni/pull/95 X-link: https://github.com/facebookincubator/Battery-Metrics/pull/30 X-link: https://github.com/facebook/ktfmt/pull/440 X-link: https://github.com/facebook/flipper/pull/5456 X-link: https://github.com/facebook/hermes/pull/1290 X-link: https://github.com/facebook/TextLayoutBuilder/pull/35 X-link: https://github.com/facebook/SoLoader/pull/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 --- .../src/main/java/com/ericsson/otp/erlang/OtpErlangList.java | 4 +++- .../src/main/java/com/ericsson/otp/erlang/OtpInputStream.java | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/eqwalizer/src/main/java/com/ericsson/otp/erlang/OtpErlangList.java b/eqwalizer/src/main/java/com/ericsson/otp/erlang/OtpErlangList.java index eca599f0..8bce4499 100644 --- a/eqwalizer/src/main/java/com/ericsson/otp/erlang/OtpErlangList.java +++ b/eqwalizer/src/main/java/com/ericsson/otp/erlang/OtpErlangList.java @@ -334,7 +334,9 @@ private Iterator iterator(final int start) { return new Itr(start); } - /** @return true if the list is proper, i.e. the last tail is nil */ + /** + * @return true if the list is proper, i.e. the last tail is nil + */ public boolean isProper() { return lastTail == null; } diff --git a/eqwalizer/src/main/java/com/ericsson/otp/erlang/OtpInputStream.java b/eqwalizer/src/main/java/com/ericsson/otp/erlang/OtpInputStream.java index 84fcbf12..332d7ed2 100644 --- a/eqwalizer/src/main/java/com/ericsson/otp/erlang/OtpInputStream.java +++ b/eqwalizer/src/main/java/com/ericsson/otp/erlang/OtpInputStream.java @@ -41,7 +41,9 @@ public class OtpInputStream extends ByteArrayInputStream { private final int flags; - /** @param buf */ + /** + * @param buf + */ public OtpInputStream(final byte[] buf) { this(buf, 0); }