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
AvoidSizeNotEqualsZero fires for timeIntervalTrigger.length > 0 where timeIntervalTrigger is a FiniteDuration:
[error] XXX.scala:15:38: [scapegoat] Avoid Traversable.size != 0
[error] .size can be slow for some data structures, prefer .nonEmpty, which is O(1).
[error] OffsetCommitSettings.this.timeIntervalTrigger.length.>(0)
[error] require(timeIntervalTrigger.length > 0, "time interval trigger duration should be positive")
I inspected the code, compared AvoidSizeNotEqualsZero and AvoidSizeEqualsZero and it looks like not-equals impl is missing if isTraversable(q) check. I guess it might've been lost during some refactoring.
The text was updated successfully, but these errors were encountered:
AvoidSizeNotEqualsZero
fires fortimeIntervalTrigger.length > 0
wheretimeIntervalTrigger
is aFiniteDuration
:I inspected the code, compared
AvoidSizeNotEqualsZero
andAvoidSizeEqualsZero
and it looks like not-equals impl is missingif isTraversable(q)
check. I guess it might've been lost during some refactoring.The text was updated successfully, but these errors were encountered: