Skip to content

Commit 73ebee2

Browse files
committed
use static block
1 parent e7bd4e1 commit 73ebee2

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

google-http-client-test/src/main/java/com/google/api/client/test/util/store/AbstractDataStoreFactoryTest.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,13 @@
4242
@RunWith(JUnit4.class)
4343
public abstract class AbstractDataStoreFactoryTest {
4444

45-
private static final String STRING_ID = "String";
46-
private static final String BOOLEAN_ID = "Boolean";
45+
private static final String STRING_ID;
46+
private static final String BOOLEAN_ID;
47+
48+
static {
49+
STRING_ID = "String";
50+
BOOLEAN_ID = "Boolean";
51+
}
4752
DataStoreFactory dataStore;
4853
DataStore<String> stringTyped;
4954
DataStore<Boolean> boolTyped;

0 commit comments

Comments
 (0)