From 3386eff4552df05aed22056ba2df0c7141cb5fde Mon Sep 17 00:00:00 2001 From: Jeff Bahr Date: Fri, 22 Mar 2024 09:58:15 -0700 Subject: [PATCH] Migrate google java format from 1.7 -> 1.21.0 (#52) Summary: 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 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 --- .../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); }