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

False positive on dead instanceof hint #52

Closed
RayDeCampo opened this issue Mar 13, 2015 · 3 comments
Closed

False positive on dead instanceof hint #52

RayDeCampo opened this issue Mar 13, 2015 · 3 comments

Comments

@RayDeCampo
Copy link

I am getting a false positive on the dead instanceof hint for the following code:

    for (final Object t : timerService.getTimers())
    {
        // If the timers aren't Timers, skip
        if (!(t instanceof Timer))
        {
            continue;
        }
        final Timer candidate = (Timer)t;

(Here timerService is a javax.ejb.TimerService and Timer is javax.ejb.Timer.)

@markiewb markiewb added the bug label Mar 13, 2015
@markiewb
Copy link
Owner

Thank you for the report. It is a duplicate of #50. It will be fixed in the next version.

In the meantime disable the hint or try the new snapshot https://github.com/markiewb/nb-additional-hints/releases/tag/v1.4.1.1

@RayDeCampo
Copy link
Author

Thanks, sorry about the dupe

@markiewb
Copy link
Owner

@RayDeCampo: No problem. Giving feedback is better than giving no feedback

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

No branches or pull requests

2 participants