Giter Site home page Giter Site logo

Comments (5)

amaembo avatar amaembo commented on July 2, 2024

Hello! Which version of FindBugs are you using? How do you launch it (Eclipse plugin? IDEA plugin? Hudson? Jenkins? Maven? Ant? Manually?). If possible, please attach the minimal source file which produces false positive. Also please paste exact FindBugs warning report (if possible, an excerpt from findbugs XML file).

I cannot say for sure, but from your description it looks like you are looking on the old results. For example, you are using FindBugs in Eclipse IDE and did not switch on the automatic FindBugs launch on save, so it just shows you the message which was actual before you did some changes in the code.

from findbugs.

jcnoriega avatar jcnoriega commented on July 2, 2024

Here is the info you requested:
Findbugs: 3.0.1
We launch it with gradle
The source file and the report excerpt are attached.
MyService.txt
ReportExcerpt.txt

from findbugs.

amaembo avatar amaembo commented on July 2, 2024

I tried to reproduce it on my system, added missing classes see this gist:
https://gist.github.com/amaembo/34b32637ca05ff65eeb9

I see no findbugs reports (except the hardcoded filename) in this file. Can you reproduce it on your system with this file? If not, could you please provide a class file for your original code (ProfilePictureServiceImpl.class) which triggers the findbugs error? Thanks.

from findbugs.

 avatar commented on July 2, 2024

@amaembo The official documentation for DLS_DEAD_LOCAL_STORE claims that "Sun's javac compiler often generates dead stores for final local variables. Because FindBugs is a bytecode-based tool, there is no easy way to eliminate these false positives."

Maybe the version/brand of javac compiler matters when trying to reproduce this problem?

(For the record, I cannot reproduce it with Oracle Java 1.8.0_101).

from findbugs.

iloveeclipse avatar iloveeclipse commented on July 2, 2024

This project continues development in a new home: https://github.com/spotbugs/spotbugs/

Please do not open new issues here anymore!

from findbugs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.