From 3bb0e10f9d2f6f98a86c7d6d85e1b486eb7f0db3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20S=C3=B6derberg?= Date: Wed, 20 Dec 2023 14:12:49 +0100 Subject: [PATCH] fix: `CommandResult.getCommandContext` -> `commandContext` --- .../incendo/cloud/spring/SpringCommandRegistrationHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloud-spring/src/main/java/org/incendo/cloud/spring/SpringCommandRegistrationHandler.java b/cloud-spring/src/main/java/org/incendo/cloud/spring/SpringCommandRegistrationHandler.java index 3cc3be3..96b4bfd 100644 --- a/cloud-spring/src/main/java/org/incendo/cloud/spring/SpringCommandRegistrationHandler.java +++ b/cloud-spring/src/main/java/org/incendo/cloud/spring/SpringCommandRegistrationHandler.java @@ -82,7 +82,7 @@ public final boolean registerCommand(final @NonNull Command command) { .function(context -> { final CommandExecutionEvent event = new CommandExecutionEvent<>(command, context); this.applicationEventPublisher.publishEvent(event); - return Objects.requireNonNull(event.result(), "result").getCommandContext().getOrDefault( + return Objects.requireNonNull(event.result(), "result").commandContext().getOrDefault( SpringCommandManager.OUTPUT, null );