Skip to content

Commit b51175a

Browse files
committed
optimize code
1 parent 7aa1adb commit b51175a

File tree

5 files changed

+4
-4
lines changed

5 files changed

+4
-4
lines changed

GoRouter/src/main/java/com/wyjson/router/callback/GoCallbackImpl.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package com.wyjson.router.callback;
22

3+
import androidx.annotation.NonNull;
4+
35
import com.wyjson.router.core.Card;
46

57
public abstract class GoCallbackImpl implements GoCallback {
@@ -17,7 +19,7 @@ public void onLost(Card card) {
1719
public abstract void onArrival(Card card);
1820

1921
@Override
20-
public void onInterrupt(Card card, Throwable exception) {
22+
public void onInterrupt(Card card, @NonNull Throwable exception) {
2123

2224
}
2325
}

GoRouter/src/main/java/com/wyjson/router/core/GoRouter.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
import androidx.annotation.Nullable;
1414
import androidx.arch.core.util.Function;
1515
import androidx.core.app.ActivityCompat;
16-
import androidx.core.util.Supplier;
1716
import androidx.fragment.app.Fragment;
1817

1918
import com.wyjson.router.callback.GoCallback;

GoRouter/src/main/java/com/wyjson/router/document/DocumentUtils.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package com.wyjson.router.document;
22

33
import androidx.arch.core.util.Function;
4-
import androidx.core.util.Supplier;
54

65
import com.google.gson.Gson;
76
import com.google.gson.GsonBuilder;

GoRouter/src/main/java/com/wyjson/router/exception/RouterException.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import androidx.annotation.RequiresApi;
66

77
public class RouterException extends RuntimeException {
8+
89
public RouterException() {
910
}
1011

GoRouter/src/main/java/com/wyjson/router/service/ServiceHelper.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import com.wyjson.router.exception.RouterException;
77
import com.wyjson.router.interfaces.IService;
88

9-
import java.util.HashMap;
109
import java.util.Map;
1110

1211
public class ServiceHelper {

0 commit comments

Comments
 (0)