Giter Club home page Giter Club logo

Comments (8)

welcome avatar welcome commented on June 25, 2024

Thanks for opening your first issue here! 😃
Please check our contributing guideline. Especially when you report a problem, make sure you share a Minimal, Complete, and Verifiable example to reproduce it in this issue.

from spotbugs.

hazendaz avatar hazendaz commented on June 25, 2024

Which version of spotbugs are you using?

from spotbugs.

miguel-vila avatar miguel-vila commented on June 25, 2024

4.8.5

from spotbugs.

miguel-vila avatar miguel-vila commented on June 25, 2024

I enabled fdls.debug and got this:

    Analyzing method BaseUrl.isValidUrl
    Store at 39@20 is dead
Previous is:   19: areturn[176](1)
BaseUrl.java : isValidUrl
priority: 5
Reporting DLS: Dead store to local variable
{   A_LITTLE_BIT_LOWER_PRIORITY edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS      true
  FALSE_POSITIVE        edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.EXCEPTION_HANDLER     true
  NO_ADJUSTMENT edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME    ?
}

    Store at 41@26 is dead
Previous is:   25: areturn[176](1)
BaseUrl.java : isValidUrl
priority: 5
Reporting DLS: Dead store to local variable
{   A_LITTLE_BIT_LOWER_PRIORITY edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS      true
  FALSE_POSITIVE        edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.EXCEPTION_HANDLER     true
  NO_ADJUSTMENT edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME    ?
}

this is pointing to this line: new URL(replace(value)).toURI();. I tried reproducing this through a test but it seems no DLS_DEAD_LOCAL_STORE bug is being reported so maybe I'm not setting up the test correctly.

I got another class that are also throwing the same error, but the method that's failing looks something like:

public Deserializer(Format format) {
  super(Instant.class);
  this.format = format;
}

(this is a class constructor)

from spotbugs.

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.