Skip to content

Commit 2653b03

Browse files
committed
Public add/remove interceptor method
1 parent 2c1147c commit 2653b03

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ private static void initializeParseHttpClientsWithParseNetworkInterceptors() {
618618
* @param interceptor
619619
* {@link ParseNetworkInterceptor} to be added.
620620
*/
621-
/* package */ static void addParseNetworkInterceptor(ParseNetworkInterceptor interceptor) {
621+
public static void addParseNetworkInterceptor(ParseNetworkInterceptor interceptor) {
622622
if (isInitialized()) {
623623
throw new IllegalStateException("`Parse#addParseNetworkInterceptor(ParseNetworkInterceptor)`"
624624
+ " must be invoked before `Parse#initialize(Context)`");
@@ -636,7 +636,7 @@ private static void initializeParseHttpClientsWithParseNetworkInterceptors() {
636636
* @param interceptor
637637
* {@link ParseNetworkInterceptor} to be removed.
638638
*/
639-
/* package */ static void removeParseNetworkInterceptor(ParseNetworkInterceptor interceptor) {
639+
public static void removeParseNetworkInterceptor(ParseNetworkInterceptor interceptor) {
640640
if (isInitialized()) {
641641
throw new IllegalStateException("`Parse#addParseNetworkInterceptor(ParseNetworkInterceptor)`"
642642
+ " must be invoked before `Parse#initialize(Context)`");

0 commit comments

Comments
 (0)