Commit d92de174 authored by Jan Tattermusch's avatar Jan Tattermusch

creating private ctor for builders is now the default (as it used to be for old codegen)

parent f61e1791
......@@ -181,6 +181,7 @@ void MessageGenerator::Generate(Writer* writer) {
descriptor_->extension_range_count() > 0 ? "Extendable" : "Generated",
runtime_suffix());
writer->Indent();
writer->WriteLine("private $0$() { }", class_name()); // Private ctor.
// Must call MakeReadOnly() to make sure all lists are made read-only
writer->WriteLine(
"private static readonly $0$ defaultInstance = new $0$().MakeReadOnly();",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment