« Return to Thread: Ear file problems

write to static field from instance method

by REDDY GOPI-QMDV68 :: Rate this Message:

Reply to Author | View in Thread

FindBugs is flagging several instances of the "Write to static field
..." error but some are categorized as "H D ST", some as "M D ST", and
the rest as "L D ST". What are the differences?

Also, why is updating a static field from an instance method such a bad
thing? Should the instance method call a (synchronized in a
multi-threaded app) static method to access a static field? What's the
recommended fix or workaround?

Thanks
Gopi

_______________________________________________
Findbugs-discuss mailing list
Findbugs-discuss@...
https://mailman.cs.umd.edu/mailman/listinfo/findbugs-discuss

 « Return to Thread: Ear file problems

LightInTheBox - Buy quality products at wholesale price!