mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-01 19:58:15 +00:00
@Nullable is only a compiler informational attribute. Removing for required fields improves compiler warnings but doesn't impact any running code.
This commit is contained in:
committed by
Wouter van Oortmerssen
parent
6621424308
commit
3a2c535592
@@ -861,7 +861,7 @@ class GeneralGenerator : public BaseGenerator {
|
||||
std::string dest_cast = DestinationCast(field.value.type);
|
||||
std::string src_cast = SourceCast(field.value.type);
|
||||
std::string method_start = " public " +
|
||||
GenNullableAnnotation(field.value.type) +
|
||||
(field.required ? "" : GenNullableAnnotation(field.value.type)) +
|
||||
type_name_dest + optional + " " +
|
||||
MakeCamel(field.name, lang_.first_camel_upper);
|
||||
std::string obj = lang_.language == IDLOptions::kCSharp
|
||||
|
||||
Reference in New Issue
Block a user