Skip to content

Commit f3bd0df

Browse files
committed
Merge pull request SquareSquash#2 from square/edenman/fix-serialization-breakage
Things can be serialized in android again
2 parents 299ea56 + 99b4e3f commit f3bd0df

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,11 @@
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 {
15-
// Used in test.
16-
static final String DATE_RFC_2822 = "EEE, dd MMM yyyy HH:mm:ss Z";
17-
18-
private final ThreadLocal<DateFormat> dateFormatThreadLocal = new ThreadLocal<DateFormat>();
15+
private static final String DATE_RFC_2822 = "EEE, dd MMM yyyy HH:mm:ss Z";
16+
private static final ThreadLocal<DateFormat> dateFormatThreadLocal =
17+
new ThreadLocal<DateFormat>();
1918

2019
// Things that do not change per entry but should still be gson'd.
2120
private final String client;

0 commit comments

Comments
 (0)