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

FindBugs: ST: Misuse of static fields - Write to static field from instance method

    XMLWordPrintable

Details

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

    Description

      ST: Write to static field from instance method (ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD)

      This instance method writes to a static field. This is tricky to get correct if multiple instances are being manipulated, and generally bad practice.

         ST: In class com.sun.javatest.cof.Main
         ST: In class com.sun.javatest.httpd.HttpdServer
         ST: In class com.sun.javatest.lib.KeywordScript
         ST: In class com.sun.javatest.report.HTMLReport
         ST: In class com.sun.javatest.report.Report
         ST: In class com.sun.javatest.report.Report

      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: