From 2d6ee6eb601798775f31f6a65d92ce994a662ee5 Mon Sep 17 00:00:00 2001 From: Jeff Bahr Date: Tue, 30 Jan 2024 19:25:11 -0800 Subject: [PATCH] Migrate google java format from 1.7 -> 1.19.2 Summary: X-link: https://github.com/facebook/screenshot-tests-for-android/pull/324 X-link: https://github.com/facebook/mariana-trench/pull/153 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.19.2. 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.19.2 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); }