Fix MisusedWeekYear bug pattern flagged by error prone
Passing "YYYYMMdd-HHmmss" format to SimpleDateFormat ctor was failing
with:
error: [MisusedWeekYear] Use of "YYYY" (week year) in a date pattern
without "ww" (week in year). You probably meant to use "yyyy" (year) instead.
new SimpleDateFormat("YYYYMMdd-HHmmss").format(new Date()));
^
(see http://errorprone.info/bugpattern/MisusedWeekYear)
Did you mean 'new SimpleDateFormat("yyyyMMdd-HHmmss").format(new Date()));'
Change-Id: Ie51692fbacf06aed4a8920ca6dc0d75de47a1ee8
1 file changed