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
when using jOOQ's DSL.inline(1), ErrorProne emits a warning (which fails our build because we use -Werror)
warning: [PreferJavaTimeOverload] If the numeric primitive (1) represents a Instant, please call DSL.inline(Instant) instead.
Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Simply call DSL.inline(1).
What version of Error Prone are you using?
2.3.4
Have you found anything relevant by searching the web?
PreferJavaTimeOverload seems to check the method return type when looking for overloads, but in this case DSL.inline(int) returns a Param<Integer> while DSL.inline(Instant) returns a Param<Instant>.
IMO, they should not be treated as the same return type.
The text was updated successfully, but these errors were encountered:
Description of the problem:
when using jOOQ's
DSL.inline(1)
, ErrorProne emits a warning (which fails our build because we use-Werror
)Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Simply call
DSL.inline(1)
.What version of Error Prone are you using?
2.3.4
Have you found anything relevant by searching the web?
PreferJavaTimeOverload seems to check the method return type when looking for overloads, but in this case
DSL.inline(int)
returns aParam<Integer>
whileDSL.inline(Instant)
returns aParam<Instant>
.IMO, they should not be treated as the same return type.
The text was updated successfully, but these errors were encountered: