File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
onesignal/src/main/java/com/onesignal
unittest/src/test/java/com/onesignal Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 14
14
15
15
import com .google .common .util .concurrent .ListenableFuture ;
16
16
17
- import org .jetbrains .annotations .NotNull ;
18
17
import org .json .JSONException ;
19
18
import org .json .JSONObject ;
20
19
@@ -107,7 +106,7 @@ public Object attachCompleter(@NonNull CallbackToFutureAdapter.Completer<Result>
107
106
});
108
107
}
109
108
110
- private String doWork (@ NotNull CallbackToFutureAdapter .Completer <Result > completer ) {
109
+ private String doWork (@ NonNull CallbackToFutureAdapter .Completer <Result > completer ) {
111
110
Data inputData = getInputData ();
112
111
try {
113
112
OneSignal .onesignalLog (OneSignal .LOG_LEVEL .DEBUG , "NotificationWorker running doWork with data: " + inputData );
Original file line number Diff line number Diff line change 1
1
package com .onesignal ;
2
2
3
- import org . jetbrains . annotations . NotNull ;
3
+ import androidx . annotation . NonNull ;
4
4
5
5
public class MockDelayTaskController extends OSDelayTaskController {
6
6
private int mockedRandomValue = 0 ;
@@ -10,11 +10,11 @@ public MockDelayTaskController(OSLogger logger) {
10
10
super (logger );
11
11
}
12
12
13
- protected int getRandomNumber () {
13
+ protected int getRandomDelay () {
14
14
return mockedRandomValue ;
15
15
}
16
16
17
- public void delayTaskByRandom (@ NotNull Runnable runnable ) {
17
+ public void delayTaskByRandom (@ NonNull Runnable runnable ) {
18
18
if (runOnSameThread ) {
19
19
runnable .run ();
20
20
} else {
You can’t perform that action at this time.
0 commit comments