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
Executor.java:11: warning: [ParameterPackage] Method parameter has wrong package
protected <V> RunnableScheduledFuture<V> decorateTask(
^
(see https://errorprone.info/bugpattern/ParameterPackage)
Did you mean 'Runnable runnable, java.util.concurrent.RunnableScheduledFuture task) {'?
1 warning
Interestingly the code complains only about the Runnable overload; not the Callable overload.
The text was updated successfully, but these errors were encountered:
which was never productionized, and is buggy.
Consistently using `@Override` seems to provide most of the value
of this check, in terms of preventing accidentally overriding
(or accidentally failing to override) a method.
Fixes#1177
PiperOrigin-RevId: 350704198
which was never productionized, and is buggy.
Consistently using `@Override` seems to provide most of the value
of this check, in terms of preventing accidentally overriding
(or accidentally failing to override) a method.
Fixesgoogle#1177
PiperOrigin-RevId: 350714077
Consider this following code:
Compile this code as follows:
javac \ -XDcompilePolicy=simple \ -processorpath error_prone_core-2.3.2-with-dependencies.jar \ '-Xplugin:ErrorProne -XepDisableAllChecks -Xep:ParameterPackage:WARN' \ Executor.java
The following false positive results:
Interestingly the code complains only about the
Runnable
overload; not theCallable
overload.The text was updated successfully, but these errors were encountered: