edu.umd.cs.findbugs.detect

Class StaticCalendarDetector

public class StaticCalendarDetector extends OpcodeStackDetector

Detector for static fields of type java.util.Calendar or java.text.DateFormat and their subclasses. Because Calendar is unsafe for multithreaded use, static fields look suspicous. To work correctly, all access would need to be synchronized by the client which cannot be guaranteed.

Author: Daniel Schneller

Constructor Summary
StaticCalendarDetector(BugReporter aReporter)
Creates a new instance of this Detector.

Constructor Detail

StaticCalendarDetector

public StaticCalendarDetector(BugReporter aReporter)
Creates a new instance of this Detector.

Parameters: aReporter BugReporter instance to report found problems to.

FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.