Skip to content

Commit 89a00e8

Browse files
author
Eric Denman
committed
Fix checkstyle issues
1 parent f3bd0df commit 89a00e8

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/main/java/com/squareup/squash/SquashEntry.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010

1111
/** An exception to be tracked in Squash (the replacement for Hoptoad, because Hoptoad is lame). */
1212
// All of the fields are only used for gson serialization, and so can't be made local or removed.
13-
@SuppressWarnings({"FieldCanBeLocal", "UnusedDeclaration"})
13+
@SuppressWarnings({ "FieldCanBeLocal", "UnusedDeclaration" })
1414
public class SquashEntry {
1515
private static final String DATE_RFC_2822 = "EEE, dd MMM yyyy HH:mm:ss Z";
16-
private static final ThreadLocal<DateFormat> dateFormatThreadLocal =
16+
private static final ThreadLocal<DateFormat> DATE_FORMAT_THREAD_LOCAL =
1717
new ThreadLocal<DateFormat>();
1818

1919
// Things that do not change per entry but should still be gson'd.
@@ -55,10 +55,10 @@ public SquashEntry(String client, String apiKey, String message, Throwable error
5555
this.message = error == null ? null : error.getMessage();
5656
this.api_key = apiKey;
5757
this.user_id = userId;
58-
DateFormat dateFormat = dateFormatThreadLocal.get();
58+
DateFormat dateFormat = DATE_FORMAT_THREAD_LOCAL.get();
5959
if (dateFormat == null) {
6060
dateFormat = new SimpleDateFormat(DATE_RFC_2822);
61-
dateFormatThreadLocal.set(dateFormat);
61+
DATE_FORMAT_THREAD_LOCAL.set(dateFormat);
6262
}
6363
this.occurred_at = dateFormat.format(new Date());
6464
}

0 commit comments

Comments
 (0)