FindBugs: Double assignment of field

XMLWordPrintable

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

      SA: Double assignment of field (SA_FIELD_DOUBLE_ASSIGNMENT)

      This method contains a double assignment of a field; e.g.

        int x,y;
        public void foo() {
          x = x = 17;
        }
      Assigning to a field twice is useless, and may indicate a logic error or typo.

      Double assignment of field
         SA: In class com.sun.javatest.agent.AgentMain
         SA: In class com.sun.javatest.exec.CE_TestsPane
         SA: In class com.sun.javatest.exec.NewReportDialog

            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: