We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b27435 commit 4e507a0Copy full SHA for 4e507a0
google-http-client/src/main/java/com/google/api/client/util/store/AbstractDataStoreFactory.java
@@ -41,7 +41,11 @@ public abstract class AbstractDataStoreFactory implements DataStoreFactory {
41
* Pattern to control possible values for the {@code id} parameter of {@link
42
* #getDataStore(String)}.
43
*/
44
- private static final Pattern ID_PATTERN = Pattern.compile("\\w{1,30}");
+ private static final Pattern ID_PATTERN;
45
+
46
+ static {
47
+ ID_PATTERN = Pattern.compile("\\w{1,30}");
48
+ }
49
50
public final <V extends Serializable> DataStore<V> getDataStore(String id) throws IOException {
51
Preconditions.checkArgument(
0 commit comments