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

XMLWordPrintable

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

      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

            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: