Skip to content

Commit 1e6d802

Browse files
committed
[WFCORE-7275] Remove 'throws IOException' from AbstractModelControllerClient.getChannelAssociation()
1 parent 3ab8e7b commit 1e6d802

File tree

6 files changed

+7
-8
lines changed

6 files changed

+7
-8
lines changed

cli/src/main/java/org/jboss/as/cli/impl/CLIModelControllerClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ public void close() throws IOException {
151151
}
152152

153153
@Override
154-
protected ManagementChannelAssociation getChannelAssociation() throws IOException {
154+
protected ManagementChannelAssociation getChannelAssociation() {
155155
return channelAssociation;
156156
}
157157

controller-client/src/main/java/org/jboss/as/controller/client/impl/AbstractModelControllerClient.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,8 @@ public abstract class AbstractModelControllerClient implements ModelControllerCl
5454
* Get the mgmt channel association.
5555
*
5656
* @return the channel association
57-
* @throws IOException
5857
*/
59-
protected abstract ManagementChannelAssociation getChannelAssociation() throws IOException;
58+
protected abstract ManagementChannelAssociation getChannelAssociation();
6059

6160
@Override
6261
public ModelNode execute(final ModelNode operation) throws IOException {
@@ -379,7 +378,7 @@ static List<InputStreamEntry> createStreamEntries(final Operation operation) {
379378
return entries;
380379
}
381380

382-
private OperationResponse getOperationResponse(final ModelNode simpleResponse, final int batchId) throws IOException {
381+
private OperationResponse getOperationResponse(final ModelNode simpleResponse, final int batchId) {
383382
final ModelNode streamHeader = simpleResponse.hasDefined(RESPONSE_HEADERS) && simpleResponse.get(RESPONSE_HEADERS).hasDefined(ATTACHED_STREAMS)
384383
? simpleResponse.get(RESPONSE_HEADERS, ATTACHED_STREAMS)
385384
: null;

controller-client/src/main/java/org/jboss/as/controller/client/impl/ExistingChannelModelControllerClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ protected ExistingChannelModelControllerClient(final ManagementChannelHandler ha
2828
}
2929

3030
@Override
31-
protected ManagementChannelAssociation getChannelAssociation() throws IOException {
31+
protected ManagementChannelAssociation getChannelAssociation() {
3232
return handler;
3333
}
3434

controller-client/src/main/java/org/jboss/as/controller/client/impl/RemotingModelControllerClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public synchronized void close() throws IOException {
7474
}
7575

7676
@Override
77-
protected ManagementChannelAssociation getChannelAssociation() throws IOException {
77+
protected ManagementChannelAssociation getChannelAssociation() {
7878
return closeable.channelAssociation;
7979
}
8080

testsuite/domain/src/test/java/org/jboss/as/test/integration/respawn/TestControllerClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class TestControllerClient extends AbstractModelControllerClient {
3636
}
3737

3838
@Override
39-
protected ManagementChannelAssociation getChannelAssociation() throws IOException {
39+
protected ManagementChannelAssociation getChannelAssociation() {
4040
return channelHandler;
4141
}
4242

testsuite/shared/src/main/java/org/jboss/as/test/integration/domain/management/util/DomainTestConnection.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Connection getConnection() {
7474
}
7575

7676
@Override
77-
protected ManagementChannelAssociation getChannelAssociation() throws IOException {
77+
protected ManagementChannelAssociation getChannelAssociation() {
7878
return handler;
7979
}
8080

0 commit comments

Comments
 (0)