Skip to content

Commit 682d583

Browse files
author
Andrey Ershov
committed
readFrom should throw UnsupportedOpExc
1 parent dc64cea commit 682d583

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/main/java/org/elasticsearch/action/admin/cluster/repositories/get/GetRepositoriesResponse.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public class GetRepositoriesResponse extends ActionResponse implements ToXConten
5050
}
5151

5252
public GetRepositoriesResponse(StreamInput in) throws IOException {
53-
readFrom(in);
53+
repositories = new RepositoriesMetaData(in);
5454
}
5555

5656
/**
@@ -65,7 +65,7 @@ public List<RepositoryMetaData> repositories() {
6565

6666
@Override
6767
public void readFrom(StreamInput in) throws IOException {
68-
repositories = new RepositoriesMetaData(in);
68+
throw new UnsupportedOperationException("usage of Streamable is to be replaced by Writeable");
6969
}
7070

7171
@Override

0 commit comments

Comments
 (0)