Skip to content

Commit 0632605

Browse files
fjtiradoCopilot
andauthored
Apply suggestions from code review
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent d790436 commit 0632605

2 files changed

Lines changed: 5 additions & 9 deletions

File tree

impl/a2a/src/main/java/io/serverlessworkflow/impl/executors/a2a/A2AUtils.java

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,10 @@ static <T> T isInstanceOrDefault(Object obj, Class<T> instanceClass, Supplier<T>
8888
() -> {
8989
if (obj != null) {
9090
logger.warn(
91-
"Object "
92-
+ obj
93-
+ " is expected to be of class"
94-
+ instanceClass
95-
+ " but it is of class "
96-
+ obj.getClass()
97-
+ " Using provided default");
98-
}
91+
"Object {} is expected to be of class {} but it is of class {}. Using provided default",
92+
obj,
93+
instanceClass.getName(),
94+
obj.getClass().getName());
9995
return defaultValue.get();
10096
});
10197
}

impl/test/src/test/resources/workflows-samples/a2a/a2a-task-handler.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ do:
2626
method: tasks/cancel
2727
agentCard:
2828
endpoint: http://localhost:11111
29-
parameters:
29+
parameters:
3030
taskId: ${.id}

0 commit comments

Comments
 (0)