diff options
author | Feng Xiao <xfxyjwf@gmail.com> | 2017-03-29 16:03:53 -0700 |
---|---|---|
committer | Feng Xiao <xfxyjwf@gmail.com> | 2017-03-29 16:03:53 -0700 |
commit | 84f6954ca91e7dbe57e4c972f9ac260361beaa49 (patch) | |
tree | d361178fa5a46de2ea88334f7debbea423fdf2e6 /java/util/src/main | |
parent | acde1651b53ddc50f0e37907acd109b2e10e5274 (diff) | |
download | protobuf-84f6954ca91e7dbe57e4c972f9ac260361beaa49.tar.gz protobuf-84f6954ca91e7dbe57e4c972f9ac260361beaa49.tar.bz2 protobuf-84f6954ca91e7dbe57e4c972f9ac260361beaa49.zip |
Fix Java build.
Diffstat (limited to 'java/util/src/main')
-rw-r--r-- | java/util/src/main/java/com/google/protobuf/util/JsonFormat.java | 5 |
1 files changed, 3 insertions, 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 5e0f5fe3..37fa194a 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 @@ -104,7 +104,8 @@ public class JsonFormat { */ public static Printer printer() { return new Printer( - TypeRegistry.getEmptyTypeRegistry(), false, Collections.emptySet(), false, false); + TypeRegistry.getEmptyTypeRegistry(), false, Collections.<FieldDescriptor>emptySet(), + false, false); } /** @@ -167,7 +168,7 @@ public class JsonFormat { return new Printer( registry, true, - Collections.emptySet(), + Collections.<FieldDescriptor>emptySet(), preservingProtoFieldNames, omittingInsignificantWhitespace); } |