From 461004e82d6560cf2b24a535fbb529fd5fc5ad91 Mon Sep 17 00:00:00 2001 From: "Anuraag (Rag) Agrawal" Date: Wed, 9 Oct 2024 10:06:05 -0700 Subject: [PATCH] java: remove legacy note in docstring about calling includingDefaultValueFields with no args (#18569) There is no no-args version of the method anymore. Closes #18569 COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/18569 from anuraaga:patch-2 2221ef5ae04b7616b63e2ca63ca7ca49cddf0460 PiperOrigin-RevId: 684079433 --- .../src/main/java/com/google/protobuf/util/JsonFormat.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/java/util/src/main/java/com/google/protobuf/util/JsonFormat.java b/java/util/src/main/java/com/google/protobuf/util/JsonFormat.java index 97bdbb0b70..e92bc73d43 100644 --- a/java/util/src/main/java/com/google/protobuf/util/JsonFormat.java +++ b/java/util/src/main/java/com/google/protobuf/util/JsonFormat.java @@ -182,8 +182,7 @@ public class JsonFormat { * Creates a new {@link Printer} that will also print default-valued fields if their * FieldDescriptors are found in the supplied set. Empty repeated fields and map fields will be * printed as well, if they match. The new Printer clones all other configurations from the - * current {@link Printer}. Call includingDefaultValueFields() with no args to unconditionally - * output all fields. + * current {@link Printer}. * *

Note that non-repeated message fields or fields in a oneof are not honored if provided * here.