You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See also #672; @SuppressWarnings({"all"}) does not suppress -Xlint warnings for some reason.
In this case, it should be fairly easy to fix this, and the cast warning is probably not one you want to disable. (Whereas the processing warning in #672 is often one that gets disabled anyway.)
The text was updated successfully, but these errors were encountered:
Here is a minimalistic interface that will repro the issue.
Here's the warning(/error with
-Werror
enabled):You need both the JSON annotations and the
Builder
class to trigger this warning.Here's the offending generated snippet:
builder.build()
actually returns anImmutableExample
, not anExample
. Hence, the cast is redundant.If you remove the
Builder
class fromExample
, the snippet looks like this instead:See also #672;
@SuppressWarnings({"all"})
does not suppress-Xlint
warnings for some reason.In this case, it should be fairly easy to fix this, and the
cast
warning is probably not one you want to disable. (Whereas theprocessing
warning in #672 is often one that gets disabled anyway.)The text was updated successfully, but these errors were encountered: