Generate proto Java classes with @Generated annotation

Posted by liqweed:

Adding the @javax.annotation.Generated annotation to the generated Java classes allows FindBugs, errorprone and other code inspection tools to ignore these files.

deepakjois commented :

It looks like all the code for the grpc classes is already annotated like:

    value = "by gRPC proto compiler (version 1.7.0)",
    comments = "Source: task.proto")

However, DgraphProto doesn’t have this annotation. There is an open issue about it here:

I don’t think we can do much about it till they fix it upstream. Leaving it open for now, hoping this will happen soon enough.