Skip to content

Commit 21c22bd

Browse files
committed
Revert "do not throw an exception when init parse more than once, just issue a warning"
This reverts commit ddbc562.
1 parent ddbc562 commit 21c22bd

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Parse/src/main/java/com/parse/ParsePlugins.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ class ParsePlugins {
2626
private static final String INSTALLATION_ID_LOCATION = "installationId";
2727

2828
private static final Object LOCK = new Object();
29-
private static final String TAG = "com.parse.ParsePlugins";
3029
private static ParsePlugins instance;
3130

3231
// TODO(grantland): Move towards a Config/Builder parameter pattern to allow other configurations
@@ -38,8 +37,7 @@ static void initialize(Parse.Configuration configuration) {
3837
static void set(ParsePlugins plugins) {
3938
synchronized (LOCK) {
4039
if (instance != null) {
41-
PLog.w(TAG, "ParsePlugins is already initialized");
42-
return;
40+
throw new IllegalStateException("ParsePlugins is already initialized");
4341
}
4442
instance = plugins;
4543
}

0 commit comments

Comments
 (0)