Commit 3a2c5355 authored by Mike Mansell's avatar Mike Mansell Committed by Wouter van Oortmerssen

Remove @Nullable (Java) for required fields (fixes #4724) (#4726)

@Nullable is only a compiler informational attribute.
Removing for required fields improves compiler warnings
but doesn't impact any running code.
parent 66214243
...@@ -861,7 +861,7 @@ class GeneralGenerator : public BaseGenerator { ...@@ -861,7 +861,7 @@ class GeneralGenerator : public BaseGenerator {
std::string dest_cast = DestinationCast(field.value.type); std::string dest_cast = DestinationCast(field.value.type);
std::string src_cast = SourceCast(field.value.type); std::string src_cast = SourceCast(field.value.type);
std::string method_start = " public " + std::string method_start = " public " +
GenNullableAnnotation(field.value.type) + (field.required ? "" : GenNullableAnnotation(field.value.type)) +
type_name_dest + optional + " " + type_name_dest + optional + " " +
MakeCamel(field.name, lang_.first_camel_upper); MakeCamel(field.name, lang_.first_camel_upper);
std::string obj = lang_.language == IDLOptions::kCSharp std::string obj = lang_.language == IDLOptions::kCSharp
......
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