Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7098399

FindBugs: Dead store to local variable

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2
    • jt4.4.1
    • jt4.4.1
    • tools
    • b05
    • b05
    • generic
    • generic
    • Verified

    Description

      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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: