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
I'm using contrib.OldTime, however the issue applies to other rules as well.
I need to interop with a legacy Java API. While I can @SuppressWarnings the usage site, there is no way to annotate the import clause. Disabling the check for the whole project is not desirable. Other static analysis tools can use comments instead of annotations, which would be a solution to this problem.
importjava.util.Date// wartremover error here. how to whitelist it?@SuppressWarnings(Array(Warts.OldTime))
classX {
defy= legacyJavaApi.z(newDate)
}
The text was updated successfully, but these errors were encountered:
I'm using
contrib.OldTime
, however the issue applies to other rules as well.I need to interop with a legacy Java API. While I can
@SuppressWarnings
the usage site, there is no way to annotate theimport
clause. Disabling the check for the whole project is not desirable. Other static analysis tools can use comments instead of annotations, which would be a solution to this problem.The text was updated successfully, but these errors were encountered: