LimitedSequence: Improve suppression comment. (#9298)

This commit is contained in:
Gian Merlino 2020-01-31 16:21:08 -08:00 committed by GitHub
parent 85d0d57fc9
commit 0f0554f8fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -52,7 +52,9 @@ final class LimitedSequence<T> extends YieldingSequenceBase<T>
return new LimitedYielder<>(subYielder, limitedAccumulator);
}
@SuppressWarnings("InnerClassMayBeStatic") // False alarm: flagged by IDEA inspections, but can't actually be static.
// False alarm: This is flagged as InnerClassMayBeStatic by IDEA inspections, but can't actually be static, because
// it depends on the non-static inner class LimitedYieldingAccumulator.
@SuppressWarnings("InnerClassMayBeStatic")
private class LimitedYielder<OutType> implements Yielder<OutType>
{
private final Yielder<OutType> subYielder;