FindBugs: Dead store to local variable

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P2
    • jt4.4.1
    • Affects Version/s: jt4.4.1
    • Component/s: tools
    • b05
    • b05
    • generic
    • generic
    • Verified

      DLS: Dead store to local variable (DLS_DEAD_LOCAL_STORE)

      This instruction assigns a value to a local variable, but the value is not read or used in any subsequent instruction. Often, this indicates an error, because the value computed is never used.

      Note 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.

         DLS: In class com.sun.javatest.TestResult
         DLS: In class com.sun.javatest.Trace
         DLS: In class com.sun.javatest.agent.AgentManager$Task
         DLS: In class com.sun.javatest.exec.BranchPanel
         DLS: In class com.sun.javatest.exec.TT_NodeCache
         DLS: In class com.sun.javatest.exec.TestTreeModel
         DLS: In class com.sun.javatest.junit.JUnitAnnotationMultiTest
         DLS: In class com.sun.javatest.util.LogFile

            Assignee:
            Mikhail Ershov (Inactive)
            Reporter:
            Mikhail Ershov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: