Skip to content

Commit fe50bd8

Browse files
authored
fix: add missing service annotation to cluster node parser method (#1743)
### Motivation The service annotation on the I18n parameter of `ClusterCommand#defaultNetworkClusterNodeParser` was missing. ### Modification Add the missing service annotation. ### Result The method parameter can now be injected and using certain `cluster` commands no longer results in an exception. ##### Other context Fixes #1742
1 parent af7cc10 commit fe50bd8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

node/impl/src/main/java/eu/cloudnetservice/node/impl/command/sub/ClusterCommand.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,10 @@ public ClusterCommand(
138138
}
139139

140140
@Parser(suggestions = "networkClusterNode")
141-
public @NonNull NetworkClusterNode defaultNetworkClusterNodeParser(@NonNull CommandInput input, @NonNull I18n i18n) {
141+
public @NonNull NetworkClusterNode defaultNetworkClusterNodeParser(
142+
@NonNull CommandInput input,
143+
@NonNull @Service I18n i18n
144+
) {
142145
var nodeId = input.readString();
143146
var clusterNode = this.clusterNodeProvider.node(nodeId);
144147
if (clusterNode == null) {

0 commit comments

Comments
 (0)