Class MisusedWeekYear

All Implemented Interfaces:
BugChecker.MethodInvocationTreeMatcher, BugChecker.NewClassTreeMatcher, Suppressible, Serializable

public final class MisusedWeekYear extends MisusedDateFormat
Ban use of YYYY in a SimpleDateFormat pattern, unless it is being used for a week date. Otherwise the user almost certainly meant yyyy instead. See the summary in the BugPattern below for more details.

This bug caused a Twitter outage in December 2014.

See Also:
  • Constructor Details

    • MisusedWeekYear

      public MisusedWeekYear()