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

FindBugs: Double assignment of field

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • jt4.4.1
    • jt4.4.1
    • 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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: