Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FII_USE_METHOD_REFERENCE false positive? #287

Closed
zolyfarkas opened this issue May 18, 2018 · 3 comments
Closed

FII_USE_METHOD_REFERENCE false positive? #287

zolyfarkas opened this issue May 18, 2018 · 3 comments

Comments

@zolyfarkas
Copy link

I have FII_USE_METHOD_REFERENCE firing for:

static TimedSupplier fromSupplier(Supplier supplier) {
return (s, e) -> supplier.get();
}

TimedSupplier is:

@FunctionalInterface
public interface TimedSupplier {

T get(long startTimeNanos, long deadlineNanos);

}

I am not sure how I can use method reference here.. supplier::get is not compat with T get(long startTimeNanos, long deadlineNanos) ... or there is a lambda feature that I am not aware of?...

@mebigfatguy
Copy link
Owner

i believe this is also fixed via #282

i'll add your repository to the list of ones i test with, for future releases

@mebigfatguy
Copy link
Owner

does 7.4.1 resolve this issue?

@nickantzoulis
Copy link

Yes, 7.4.1 resolves this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants