ivankelly commented on a change in pull request #670: BP-14 Relax Durability -
patch 1 Introducing LedgerType
URL: https://github.com/apache/bookkeeper/pull/670#discussion_r148820382
##########
File path: pom.xml
##########
@@ -204,7 +204,8 @@
<target>1.8</target>
<compilerArgs>
<compilerArg>-Werror</compilerArg>
- <compilerArg>-Xlint:deprecation</compilerArg>
+ <!-- protobuf generates deprecated code for top level enums -->
+ <!--<compilerArg>-Xlint:deprecation</compilerArg>-->
Review comment:
There's a couple of approaches possible; None is pretty, but it's prettier
than turning off all warnings. I would actually go for c), because at some
point we should break the bookkeeper client out of the server package, and in
this case, the protocol will be a shared dependency.
a) use maven-replacer to add SuppressWarnings to all the generated classes
b) use a different compile phase for generated code.
c) put all generated code in a separate module
https://stackoverflow.com/questions/39994647/maven-3-how-to-exclude-generated-sources-from-xlint-check
https://github.com/google/protobuf/issues/1596
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services