Skip to content

Commit ce1ef7a

Browse files
committed
restore static blocks in gson module
1 parent 245c570 commit ce1ef7a

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

google-http-client-gson/src/test/java/com/google/api/client/json/gson/GsonFactoryTest.java

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,11 @@
3838
*/
3939
public class GsonFactoryTest extends AbstractJsonFactoryTest {
4040

41-
private static final String GSON_LINE_SEPARATOR;
42-
private static final String JSON_ENTRY_PRETTY;
43-
private static final String JSON_FEED_PRETTY;
41+
private static final String GSON_LINE_SEPARATOR = "\n";
4442

45-
static {
46-
GSON_LINE_SEPARATOR = "\n";
47-
JSON_ENTRY_PRETTY =
43+
private static final String JSON_ENTRY_PRETTY =
4844
"{" + GSON_LINE_SEPARATOR + " \"title\": \"foo\"" + GSON_LINE_SEPARATOR + "}";
49-
JSON_FEED_PRETTY =
45+
private static final String JSON_FEED_PRETTY =
5046
"{"
5147
+ GSON_LINE_SEPARATOR
5248
+ " \"entries\": ["
@@ -66,7 +62,6 @@ public class GsonFactoryTest extends AbstractJsonFactoryTest {
6662
+ " ]"
6763
+ GSON_LINE_SEPARATOR
6864
+ "}";
69-
}
7065

7166
@Override
7267
protected JsonFactory newFactory() {

0 commit comments

Comments
 (0)