You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: taskmaster-service-helper/src/main/java/com/github/bordertech/taskmaster/service/impl/ServiceHelperProviderDefault.java
+43-39Lines changed: 43 additions & 39 deletions
Original file line number
Diff line number
Diff line change
@@ -46,7 +46,7 @@ public <S extends Serializable, T extends Serializable> TaskFuture<ResultHolder<
46
46
47
47
// Check action provided
48
48
if (action == null) {
49
-
thrownewIllegalArgumentException("No service action has been provided. ");
49
+
thrownewIllegalArgumentException("No service action has been provided for submit async call.");
50
50
}
51
51
52
52
// Setup the bean to hold the service result
@@ -67,28 +67,14 @@ public <S extends Serializable, T extends Serializable> TaskFuture<ResultHolder<
67
67
68
68
// Check action provided
69
69
if (action == null) {
70
-
thrownewIllegalArgumentException("No service action has been provided. ");
70
+
thrownewIllegalArgumentException("No service action has been provided for submit async cached call.");
71
71
}
72
72
73
-
// Check cache and cache key provided
74
-
if (cache == null) {
75
-
thrownewIllegalArgumentException("A cache must be provided for async processing.");
76
-
}
77
-
if (cacheKey == null) {
78
-
thrownewIllegalArgumentException("A cache key must be provided for async processing. ");
0 commit comments