diff --git a/client/rest-high-level/src/main/java/org/elasticsearch/client/tasks/TaskSubmissionResponse.java b/client/rest-high-level/src/main/java/org/elasticsearch/client/tasks/TaskSubmissionResponse.java index 011be514d13..f2d7a812429 100644 --- a/client/rest-high-level/src/main/java/org/elasticsearch/client/tasks/TaskSubmissionResponse.java +++ b/client/rest-high-level/src/main/java/org/elasticsearch/client/tasks/TaskSubmissionResponse.java @@ -73,5 +73,4 @@ public class TaskSubmissionResponse { public static TaskSubmissionResponse fromXContent(XContentParser parser) throws IOException { return PARSER.parse(parser, null); } - } diff --git a/modules/ingest-common/src/main/java/org/elasticsearch/ingest/common/GrokProcessorGetAction.java b/modules/ingest-common/src/main/java/org/elasticsearch/ingest/common/GrokProcessorGetAction.java index f6eadab8014..b086deb96fe 100644 --- a/modules/ingest-common/src/main/java/org/elasticsearch/ingest/common/GrokProcessorGetAction.java +++ b/modules/ingest-common/src/main/java/org/elasticsearch/ingest/common/GrokProcessorGetAction.java @@ -94,7 +94,6 @@ public class GrokProcessorGetAction extends StreamableResponseActionType> entry : aliases) { out.writeString(entry.key); diff --git a/server/src/main/java/org/elasticsearch/action/admin/indices/analyze/AnalyzeAction.java b/server/src/main/java/org/elasticsearch/action/admin/indices/analyze/AnalyzeAction.java index 59d882fe8e1..366a5dafa2a 100644 --- a/server/src/main/java/org/elasticsearch/action/admin/indices/analyze/AnalyzeAction.java +++ b/server/src/main/java/org/elasticsearch/action/admin/indices/analyze/AnalyzeAction.java @@ -346,7 +346,6 @@ public class AnalyzeAction extends ActionType { @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); if (tokens != null) { out.writeVInt(tokens.size()); for (AnalyzeToken token : tokens) { diff --git a/server/src/main/java/org/elasticsearch/action/admin/indices/exists/indices/IndicesExistsResponse.java b/server/src/main/java/org/elasticsearch/action/admin/indices/exists/indices/IndicesExistsResponse.java index fb2d5c0fa9b..5c84ccefa31 100644 --- a/server/src/main/java/org/elasticsearch/action/admin/indices/exists/indices/IndicesExistsResponse.java +++ b/server/src/main/java/org/elasticsearch/action/admin/indices/exists/indices/IndicesExistsResponse.java @@ -48,7 +48,6 @@ public class IndicesExistsResponse extends ActionResponse { @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); out.writeBoolean(exists); } } diff --git a/server/src/main/java/org/elasticsearch/action/admin/indices/exists/types/TypesExistsResponse.java b/server/src/main/java/org/elasticsearch/action/admin/indices/exists/types/TypesExistsResponse.java index c492c392933..d7d4180b3a3 100644 --- a/server/src/main/java/org/elasticsearch/action/admin/indices/exists/types/TypesExistsResponse.java +++ b/server/src/main/java/org/elasticsearch/action/admin/indices/exists/types/TypesExistsResponse.java @@ -50,7 +50,6 @@ public class TypesExistsResponse extends ActionResponse { @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); out.writeBoolean(exists); } } \ No newline at end of file diff --git a/server/src/main/java/org/elasticsearch/action/admin/indices/flush/SyncedFlushResponse.java b/server/src/main/java/org/elasticsearch/action/admin/indices/flush/SyncedFlushResponse.java index 890e968fe60..ed05ec096df 100644 --- a/server/src/main/java/org/elasticsearch/action/admin/indices/flush/SyncedFlushResponse.java +++ b/server/src/main/java/org/elasticsearch/action/admin/indices/flush/SyncedFlushResponse.java @@ -211,7 +211,6 @@ public class SyncedFlushResponse extends ActionResponse implements ToXContentFra @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); shardCounts.writeTo(out); out.writeInt(shardsResultPerIndex.size()); for (Map.Entry> entry : shardsResultPerIndex.entrySet()) { diff --git a/server/src/main/java/org/elasticsearch/action/admin/indices/get/GetIndexResponse.java b/server/src/main/java/org/elasticsearch/action/admin/indices/get/GetIndexResponse.java index 235df6d4c33..413c3716adc 100644 --- a/server/src/main/java/org/elasticsearch/action/admin/indices/get/GetIndexResponse.java +++ b/server/src/main/java/org/elasticsearch/action/admin/indices/get/GetIndexResponse.java @@ -204,7 +204,6 @@ public class GetIndexResponse extends ActionResponse implements ToXContentObject @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); out.writeStringArray(indices); out.writeVInt(mappings.size()); for (ObjectObjectCursor> indexEntry : mappings) { diff --git a/server/src/main/java/org/elasticsearch/action/admin/indices/mapping/get/GetFieldMappingsResponse.java b/server/src/main/java/org/elasticsearch/action/admin/indices/mapping/get/GetFieldMappingsResponse.java index e3be9e68342..e984e214e6f 100644 --- a/server/src/main/java/org/elasticsearch/action/admin/indices/mapping/get/GetFieldMappingsResponse.java +++ b/server/src/main/java/org/elasticsearch/action/admin/indices/mapping/get/GetFieldMappingsResponse.java @@ -298,7 +298,6 @@ public class GetFieldMappingsResponse extends ActionResponse implements ToXConte @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); out.writeVInt(mappings.size()); for (Map.Entry>> indexEntry : mappings.entrySet()) { out.writeString(indexEntry.getKey()); diff --git a/server/src/main/java/org/elasticsearch/action/admin/indices/mapping/get/GetMappingsResponse.java b/server/src/main/java/org/elasticsearch/action/admin/indices/mapping/get/GetMappingsResponse.java index 7abbea9c1d9..73a04e46630 100644 --- a/server/src/main/java/org/elasticsearch/action/admin/indices/mapping/get/GetMappingsResponse.java +++ b/server/src/main/java/org/elasticsearch/action/admin/indices/mapping/get/GetMappingsResponse.java @@ -77,7 +77,6 @@ public class GetMappingsResponse extends ActionResponse implements ToXContentFra @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); out.writeVInt(mappings.size()); for (ObjectObjectCursor> indexEntry : mappings) { out.writeString(indexEntry.key); diff --git a/server/src/main/java/org/elasticsearch/action/admin/indices/settings/get/GetSettingsResponse.java b/server/src/main/java/org/elasticsearch/action/admin/indices/settings/get/GetSettingsResponse.java index c5d931a69d2..214883faf7e 100644 --- a/server/src/main/java/org/elasticsearch/action/admin/indices/settings/get/GetSettingsResponse.java +++ b/server/src/main/java/org/elasticsearch/action/admin/indices/settings/get/GetSettingsResponse.java @@ -122,7 +122,6 @@ public class GetSettingsResponse extends ActionResponse implements ToXContentObj @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); out.writeVInt(indexToSettings.size()); for (ObjectObjectCursor cursor : indexToSettings) { out.writeString(cursor.key); diff --git a/server/src/main/java/org/elasticsearch/action/admin/indices/shards/IndicesShardStoresResponse.java b/server/src/main/java/org/elasticsearch/action/admin/indices/shards/IndicesShardStoresResponse.java index 3f4510c8f24..f33cefdf9a2 100644 --- a/server/src/main/java/org/elasticsearch/action/admin/indices/shards/IndicesShardStoresResponse.java +++ b/server/src/main/java/org/elasticsearch/action/admin/indices/shards/IndicesShardStoresResponse.java @@ -337,7 +337,6 @@ public class IndicesShardStoresResponse extends ActionResponse implements ToXCon @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); out.writeVInt(storeStatuses.size()); for (ObjectObjectCursor>> indexShards : storeStatuses) { out.writeString(indexShards.key); diff --git a/server/src/main/java/org/elasticsearch/action/admin/indices/template/get/GetIndexTemplatesResponse.java b/server/src/main/java/org/elasticsearch/action/admin/indices/template/get/GetIndexTemplatesResponse.java index e5cd947f0f0..fd776cafcff 100644 --- a/server/src/main/java/org/elasticsearch/action/admin/indices/template/get/GetIndexTemplatesResponse.java +++ b/server/src/main/java/org/elasticsearch/action/admin/indices/template/get/GetIndexTemplatesResponse.java @@ -63,7 +63,6 @@ public class GetIndexTemplatesResponse extends ActionResponse implements ToXCont @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); out.writeVInt(indexTemplates.size()); for (IndexTemplateMetaData indexTemplate : indexTemplates) { indexTemplate.writeTo(out); diff --git a/server/src/main/java/org/elasticsearch/action/bulk/BulkResponse.java b/server/src/main/java/org/elasticsearch/action/bulk/BulkResponse.java index d474dcee363..6713db98692 100644 --- a/server/src/main/java/org/elasticsearch/action/bulk/BulkResponse.java +++ b/server/src/main/java/org/elasticsearch/action/bulk/BulkResponse.java @@ -142,7 +142,6 @@ public class BulkResponse extends ActionResponse implements Iterable fc.writeTo(valueOut)); diff --git a/server/src/main/java/org/elasticsearch/action/fieldcaps/FieldCapabilitiesResponse.java b/server/src/main/java/org/elasticsearch/action/fieldcaps/FieldCapabilitiesResponse.java index e480d5dc69a..1d04d07da29 100644 --- a/server/src/main/java/org/elasticsearch/action/fieldcaps/FieldCapabilitiesResponse.java +++ b/server/src/main/java/org/elasticsearch/action/fieldcaps/FieldCapabilitiesResponse.java @@ -123,7 +123,6 @@ public class FieldCapabilitiesResponse extends ActionResponse implements ToXCont @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); if (out.getVersion().onOrAfter(Version.V_7_2_0)) { out.writeStringArray(indices); } diff --git a/server/src/main/java/org/elasticsearch/action/get/GetResponse.java b/server/src/main/java/org/elasticsearch/action/get/GetResponse.java index 3d340d455ce..b7f16eeba4f 100644 --- a/server/src/main/java/org/elasticsearch/action/get/GetResponse.java +++ b/server/src/main/java/org/elasticsearch/action/get/GetResponse.java @@ -210,7 +210,6 @@ public class GetResponse extends ActionResponse implements Iterable @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); clusterName.writeTo(out); writeNodesTo(out, nodes); out.writeList(failures); diff --git a/server/src/main/java/org/elasticsearch/action/support/replication/ReplicationResponse.java b/server/src/main/java/org/elasticsearch/action/support/replication/ReplicationResponse.java index 83e4085d7ec..008b0095fb8 100644 --- a/server/src/main/java/org/elasticsearch/action/support/replication/ReplicationResponse.java +++ b/server/src/main/java/org/elasticsearch/action/support/replication/ReplicationResponse.java @@ -58,7 +58,6 @@ public class ReplicationResponse extends ActionResponse { @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); shardInfo.writeTo(out); } diff --git a/server/src/main/java/org/elasticsearch/action/support/replication/TransportReplicationAction.java b/server/src/main/java/org/elasticsearch/action/support/replication/TransportReplicationAction.java index 2aff3c66bba..1b918975760 100644 --- a/server/src/main/java/org/elasticsearch/action/support/replication/TransportReplicationAction.java +++ b/server/src/main/java/org/elasticsearch/action/support/replication/TransportReplicationAction.java @@ -988,7 +988,6 @@ public abstract class TransportReplicationAction< @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); out.writeZLong(localCheckpoint); out.writeZLong(globalCheckpoint); } diff --git a/server/src/main/java/org/elasticsearch/action/support/tasks/BaseTasksResponse.java b/server/src/main/java/org/elasticsearch/action/support/tasks/BaseTasksResponse.java index d859959f2e6..bf3822267c0 100644 --- a/server/src/main/java/org/elasticsearch/action/support/tasks/BaseTasksResponse.java +++ b/server/src/main/java/org/elasticsearch/action/support/tasks/BaseTasksResponse.java @@ -73,7 +73,6 @@ public class BaseTasksResponse extends ActionResponse { @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); out.writeVInt(taskFailures.size()); for (TaskOperationFailure exp : taskFailures) { exp.writeTo(out); diff --git a/server/src/main/java/org/elasticsearch/action/support/tasks/TransportTasksAction.java b/server/src/main/java/org/elasticsearch/action/support/tasks/TransportTasksAction.java index 8d80a15beb1..707cbbeb1e3 100644 --- a/server/src/main/java/org/elasticsearch/action/support/tasks/TransportTasksAction.java +++ b/server/src/main/java/org/elasticsearch/action/support/tasks/TransportTasksAction.java @@ -410,7 +410,6 @@ public abstract class TransportTasksAction< @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); out.writeString(nodeId); out.writeVInt(results.size()); for (TaskResponse result : results) { diff --git a/server/src/main/java/org/elasticsearch/action/termvectors/MultiTermVectorsResponse.java b/server/src/main/java/org/elasticsearch/action/termvectors/MultiTermVectorsResponse.java index 97a2007410e..8aac77d4f3d 100644 --- a/server/src/main/java/org/elasticsearch/action/termvectors/MultiTermVectorsResponse.java +++ b/server/src/main/java/org/elasticsearch/action/termvectors/MultiTermVectorsResponse.java @@ -166,7 +166,6 @@ public class MultiTermVectorsResponse extends ActionResponse implements Iterable @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); out.writeVInt(responses.length); for (MultiTermVectorsItemResponse response : responses) { response.writeTo(out); diff --git a/server/src/main/java/org/elasticsearch/action/termvectors/MultiTermVectorsShardResponse.java b/server/src/main/java/org/elasticsearch/action/termvectors/MultiTermVectorsShardResponse.java index 2290ee9f52e..d319e23cf51 100644 --- a/server/src/main/java/org/elasticsearch/action/termvectors/MultiTermVectorsShardResponse.java +++ b/server/src/main/java/org/elasticsearch/action/termvectors/MultiTermVectorsShardResponse.java @@ -80,7 +80,6 @@ public class MultiTermVectorsShardResponse extends ActionResponse { @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); out.writeVInt(locations.size()); for (int i = 0; i < locations.size(); i++) { out.writeVInt(locations.get(i)); diff --git a/server/src/main/java/org/elasticsearch/cluster/coordination/PeersResponse.java b/server/src/main/java/org/elasticsearch/cluster/coordination/PeersResponse.java index 6e2e36697c6..74b24e913ee 100644 --- a/server/src/main/java/org/elasticsearch/cluster/coordination/PeersResponse.java +++ b/server/src/main/java/org/elasticsearch/cluster/coordination/PeersResponse.java @@ -50,7 +50,6 @@ public class PeersResponse extends TransportResponse { @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); out.writeOptionalWriteable(masterNode.orElse(null)); out.writeList(knownPeers); out.writeLong(term); diff --git a/server/src/main/java/org/elasticsearch/cluster/coordination/PreVoteResponse.java b/server/src/main/java/org/elasticsearch/cluster/coordination/PreVoteResponse.java index 379c1cfcb83..4804191025f 100644 --- a/server/src/main/java/org/elasticsearch/cluster/coordination/PreVoteResponse.java +++ b/server/src/main/java/org/elasticsearch/cluster/coordination/PreVoteResponse.java @@ -47,7 +47,6 @@ public class PreVoteResponse extends TransportResponse { @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); out.writeLong(currentTerm); out.writeLong(lastAcceptedTerm); out.writeLong(lastAcceptedVersion); diff --git a/server/src/main/java/org/elasticsearch/cluster/coordination/PublishWithJoinResponse.java b/server/src/main/java/org/elasticsearch/cluster/coordination/PublishWithJoinResponse.java index 8628177895a..577ddbd65ed 100644 --- a/server/src/main/java/org/elasticsearch/cluster/coordination/PublishWithJoinResponse.java +++ b/server/src/main/java/org/elasticsearch/cluster/coordination/PublishWithJoinResponse.java @@ -45,7 +45,6 @@ public class PublishWithJoinResponse extends TransportResponse { @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); publishResponse.writeTo(out); out.writeOptionalWriteable(optionalJoin.orElse(null)); } diff --git a/server/src/main/java/org/elasticsearch/discovery/zen/MasterFaultDetection.java b/server/src/main/java/org/elasticsearch/discovery/zen/MasterFaultDetection.java index 4c1fbcd702a..fcdd7d483e5 100644 --- a/server/src/main/java/org/elasticsearch/discovery/zen/MasterFaultDetection.java +++ b/server/src/main/java/org/elasticsearch/discovery/zen/MasterFaultDetection.java @@ -440,5 +440,8 @@ public class MasterFaultDetection extends FaultDetection { public MasterPingResponseResponse(StreamInput in) throws IOException { super(in); } + + @Override + public void writeTo(StreamOutput out) throws IOException {} } } diff --git a/server/src/main/java/org/elasticsearch/discovery/zen/NodesFaultDetection.java b/server/src/main/java/org/elasticsearch/discovery/zen/NodesFaultDetection.java index 4b89c9f19dc..a84d8c8e665 100644 --- a/server/src/main/java/org/elasticsearch/discovery/zen/NodesFaultDetection.java +++ b/server/src/main/java/org/elasticsearch/discovery/zen/NodesFaultDetection.java @@ -366,5 +366,8 @@ public class NodesFaultDetection extends FaultDetection { public PingResponse(StreamInput in) throws IOException { super(in); } + + @Override + public void writeTo(StreamOutput out) throws IOException {} } } diff --git a/server/src/main/java/org/elasticsearch/discovery/zen/UnicastZenPing.java b/server/src/main/java/org/elasticsearch/discovery/zen/UnicastZenPing.java index 836abcec84b..040ebe19fc9 100644 --- a/server/src/main/java/org/elasticsearch/discovery/zen/UnicastZenPing.java +++ b/server/src/main/java/org/elasticsearch/discovery/zen/UnicastZenPing.java @@ -572,7 +572,6 @@ public class UnicastZenPing implements ZenPing { @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); out.writeInt(id); out.writeVInt(pingResponses.length); for (PingResponse pingResponse : pingResponses) { diff --git a/server/src/main/java/org/elasticsearch/gateway/LocalAllocateDangledIndices.java b/server/src/main/java/org/elasticsearch/gateway/LocalAllocateDangledIndices.java index b51d16dbc51..2ab36e4d294 100644 --- a/server/src/main/java/org/elasticsearch/gateway/LocalAllocateDangledIndices.java +++ b/server/src/main/java/org/elasticsearch/gateway/LocalAllocateDangledIndices.java @@ -260,7 +260,6 @@ public class LocalAllocateDangledIndices { @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); out.writeBoolean(ack); } } diff --git a/server/src/main/java/org/elasticsearch/index/reindex/BulkByScrollResponse.java b/server/src/main/java/org/elasticsearch/index/reindex/BulkByScrollResponse.java index 7fe60db2ddd..a1f6eeb0f75 100644 --- a/server/src/main/java/org/elasticsearch/index/reindex/BulkByScrollResponse.java +++ b/server/src/main/java/org/elasticsearch/index/reindex/BulkByScrollResponse.java @@ -186,7 +186,6 @@ public class BulkByScrollResponse extends ActionResponse implements ToXContentFr @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); out.writeTimeValue(took); status.writeTo(out); out.writeList(bulkFailures); diff --git a/server/src/main/java/org/elasticsearch/index/seqno/RetentionLeaseActions.java b/server/src/main/java/org/elasticsearch/index/seqno/RetentionLeaseActions.java index bcb1eeeed1e..f2e44893a01 100644 --- a/server/src/main/java/org/elasticsearch/index/seqno/RetentionLeaseActions.java +++ b/server/src/main/java/org/elasticsearch/index/seqno/RetentionLeaseActions.java @@ -392,6 +392,8 @@ public class RetentionLeaseActions { super(in); } + @Override + public void writeTo(StreamOutput out) throws IOException {} } } diff --git a/server/src/main/java/org/elasticsearch/indices/flush/SyncedFlushService.java b/server/src/main/java/org/elasticsearch/indices/flush/SyncedFlushService.java index 921a8f9cc7c..77aba4bf01c 100644 --- a/server/src/main/java/org/elasticsearch/indices/flush/SyncedFlushService.java +++ b/server/src/main/java/org/elasticsearch/indices/flush/SyncedFlushService.java @@ -618,7 +618,6 @@ public class SyncedFlushService implements IndexEventListener { @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); commitId.writeTo(out); if (includeNumDocs(out.getVersion())) { out.writeInt(numDocs); @@ -707,7 +706,6 @@ public class SyncedFlushService implements IndexEventListener { @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); out.writeOptionalString(failureReason); } @@ -793,7 +791,6 @@ public class SyncedFlushService implements IndexEventListener { @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); out.writeVInt(opCount); } diff --git a/server/src/main/java/org/elasticsearch/indices/recovery/RecoveryResponse.java b/server/src/main/java/org/elasticsearch/indices/recovery/RecoveryResponse.java index acac7e732b3..512ba2ace60 100644 --- a/server/src/main/java/org/elasticsearch/indices/recovery/RecoveryResponse.java +++ b/server/src/main/java/org/elasticsearch/indices/recovery/RecoveryResponse.java @@ -75,7 +75,6 @@ public final class RecoveryResponse extends TransportResponse { @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); out.writeStringCollection(phase1FileNames); out.writeCollection(phase1FileSizes, StreamOutput::writeVLong); out.writeStringCollection(phase1ExistingFileNames); diff --git a/server/src/main/java/org/elasticsearch/indices/recovery/RecoveryTranslogOperationsResponse.java b/server/src/main/java/org/elasticsearch/indices/recovery/RecoveryTranslogOperationsResponse.java index 9f86feb5734..bfa1fb7d35f 100644 --- a/server/src/main/java/org/elasticsearch/indices/recovery/RecoveryTranslogOperationsResponse.java +++ b/server/src/main/java/org/elasticsearch/indices/recovery/RecoveryTranslogOperationsResponse.java @@ -47,7 +47,6 @@ final class RecoveryTranslogOperationsResponse extends TransportResponse { @Override public void writeTo(final StreamOutput out) throws IOException { - super.writeTo(out); // before 6.0.0 we responded with an empty response so we have to maintain that if (out.getVersion().onOrAfter(Version.V_6_0_0_alpha1)) { out.writeZLong(localCheckpoint); diff --git a/server/src/main/java/org/elasticsearch/indices/store/IndicesStore.java b/server/src/main/java/org/elasticsearch/indices/store/IndicesStore.java index bfb271c7b08..d56f9818183 100644 --- a/server/src/main/java/org/elasticsearch/indices/store/IndicesStore.java +++ b/server/src/main/java/org/elasticsearch/indices/store/IndicesStore.java @@ -443,7 +443,6 @@ public class IndicesStore implements ClusterStateListener, Closeable { @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); out.writeBoolean(shardActive); node.writeTo(out); } diff --git a/server/src/main/java/org/elasticsearch/persistent/PersistentTaskResponse.java b/server/src/main/java/org/elasticsearch/persistent/PersistentTaskResponse.java index 4387ea4230f..ed8550f4a3e 100644 --- a/server/src/main/java/org/elasticsearch/persistent/PersistentTaskResponse.java +++ b/server/src/main/java/org/elasticsearch/persistent/PersistentTaskResponse.java @@ -48,7 +48,6 @@ public class PersistentTaskResponse extends ActionResponse { @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); out.writeOptionalWriteable(task); } diff --git a/server/src/main/java/org/elasticsearch/search/SearchPhaseResult.java b/server/src/main/java/org/elasticsearch/search/SearchPhaseResult.java index 39e6adede88..2a81aac5117 100644 --- a/server/src/main/java/org/elasticsearch/search/SearchPhaseResult.java +++ b/server/src/main/java/org/elasticsearch/search/SearchPhaseResult.java @@ -20,6 +20,7 @@ package org.elasticsearch.search; import org.elasticsearch.common.io.stream.StreamInput; +import org.elasticsearch.common.io.stream.StreamOutput; import org.elasticsearch.search.fetch.FetchSearchResult; import org.elasticsearch.search.query.QuerySearchResult; import org.elasticsearch.transport.TransportResponse; @@ -93,4 +94,9 @@ public abstract class SearchPhaseResult extends TransportResponse { public final void readFrom(StreamInput in) { throw new UnsupportedOperationException("usage of Streamable is to be replaced by Writeable"); } + + @Override + public void writeTo(StreamOutput out) throws IOException { + // TODO: this seems wrong, SearchPhaseResult should have a writeTo? + } } diff --git a/server/src/main/java/org/elasticsearch/search/SearchService.java b/server/src/main/java/org/elasticsearch/search/SearchService.java index a79855b2333..017f69cdb2e 100644 --- a/server/src/main/java/org/elasticsearch/search/SearchService.java +++ b/server/src/main/java/org/elasticsearch/search/SearchService.java @@ -1089,7 +1089,6 @@ public class SearchService extends AbstractLifecycleComponent implements IndexEv @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); out.writeBoolean(canMatch); } diff --git a/server/src/main/java/org/elasticsearch/search/dfs/DfsSearchResult.java b/server/src/main/java/org/elasticsearch/search/dfs/DfsSearchResult.java index a25918988af..d78658001c5 100644 --- a/server/src/main/java/org/elasticsearch/search/dfs/DfsSearchResult.java +++ b/server/src/main/java/org/elasticsearch/search/dfs/DfsSearchResult.java @@ -100,7 +100,6 @@ public class DfsSearchResult extends SearchPhaseResult { @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); out.writeLong(requestId); out.writeVInt(terms.length); for (Term term : terms) { diff --git a/server/src/main/java/org/elasticsearch/search/fetch/FetchSearchResult.java b/server/src/main/java/org/elasticsearch/search/fetch/FetchSearchResult.java index 6e183f11483..b213d2bc19d 100644 --- a/server/src/main/java/org/elasticsearch/search/fetch/FetchSearchResult.java +++ b/server/src/main/java/org/elasticsearch/search/fetch/FetchSearchResult.java @@ -86,7 +86,6 @@ public final class FetchSearchResult extends SearchPhaseResult { @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); out.writeLong(requestId); hits.writeTo(out); } diff --git a/server/src/main/java/org/elasticsearch/search/fetch/QueryFetchSearchResult.java b/server/src/main/java/org/elasticsearch/search/fetch/QueryFetchSearchResult.java index e87bd6d5e9d..754735c0cd2 100644 --- a/server/src/main/java/org/elasticsearch/search/fetch/QueryFetchSearchResult.java +++ b/server/src/main/java/org/elasticsearch/search/fetch/QueryFetchSearchResult.java @@ -79,7 +79,6 @@ public final class QueryFetchSearchResult extends SearchPhaseResult { @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); queryResult.writeTo(out); fetchResult.writeTo(out); } diff --git a/server/src/main/java/org/elasticsearch/search/fetch/ScrollQueryFetchSearchResult.java b/server/src/main/java/org/elasticsearch/search/fetch/ScrollQueryFetchSearchResult.java index 0785fafdc21..6ef0cbadd95 100644 --- a/server/src/main/java/org/elasticsearch/search/fetch/ScrollQueryFetchSearchResult.java +++ b/server/src/main/java/org/elasticsearch/search/fetch/ScrollQueryFetchSearchResult.java @@ -71,7 +71,6 @@ public final class ScrollQueryFetchSearchResult extends SearchPhaseResult { @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); getSearchShardTarget().writeTo(out); result.writeTo(out); } diff --git a/server/src/main/java/org/elasticsearch/search/query/QuerySearchResult.java b/server/src/main/java/org/elasticsearch/search/query/QuerySearchResult.java index 7639ffc4706..6ab8b2a0716 100644 --- a/server/src/main/java/org/elasticsearch/search/query/QuerySearchResult.java +++ b/server/src/main/java/org/elasticsearch/search/query/QuerySearchResult.java @@ -305,7 +305,6 @@ public final class QuerySearchResult extends SearchPhaseResult { @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); out.writeLong(requestId); writeToNoId(out); } diff --git a/server/src/main/java/org/elasticsearch/search/query/ScrollQuerySearchResult.java b/server/src/main/java/org/elasticsearch/search/query/ScrollQuerySearchResult.java index fe8bad3d098..30902b6e473 100644 --- a/server/src/main/java/org/elasticsearch/search/query/ScrollQuerySearchResult.java +++ b/server/src/main/java/org/elasticsearch/search/query/ScrollQuerySearchResult.java @@ -61,7 +61,6 @@ public final class ScrollQuerySearchResult extends SearchPhaseResult { @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); getSearchShardTarget().writeTo(out); result.writeTo(out); } diff --git a/server/src/main/java/org/elasticsearch/snapshots/SnapshotShardsService.java b/server/src/main/java/org/elasticsearch/snapshots/SnapshotShardsService.java index 347bd714af7..4cbc87ebd9c 100644 --- a/server/src/main/java/org/elasticsearch/snapshots/SnapshotShardsService.java +++ b/server/src/main/java/org/elasticsearch/snapshots/SnapshotShardsService.java @@ -609,7 +609,8 @@ public class SnapshotShardsService extends AbstractLifecycleComponent implements } static class UpdateIndexShardSnapshotStatusResponse extends ActionResponse { - + @Override + public void writeTo(StreamOutput out) throws IOException {} } private class UpdateSnapshotStatusAction diff --git a/server/src/main/java/org/elasticsearch/transport/TransportHandshaker.java b/server/src/main/java/org/elasticsearch/transport/TransportHandshaker.java index 8db953e4e95..b77ae83f67c 100644 --- a/server/src/main/java/org/elasticsearch/transport/TransportHandshaker.java +++ b/server/src/main/java/org/elasticsearch/transport/TransportHandshaker.java @@ -224,7 +224,6 @@ final class TransportHandshaker { @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); assert responseVersion != null; Version.writeVersion(responseVersion, out); } diff --git a/server/src/main/java/org/elasticsearch/transport/TransportMessage.java b/server/src/main/java/org/elasticsearch/transport/TransportMessage.java index 05deab8eafb..67b54ca58b7 100644 --- a/server/src/main/java/org/elasticsearch/transport/TransportMessage.java +++ b/server/src/main/java/org/elasticsearch/transport/TransportMessage.java @@ -20,7 +20,6 @@ package org.elasticsearch.transport; import org.elasticsearch.common.io.stream.StreamInput; -import org.elasticsearch.common.io.stream.StreamOutput; import org.elasticsearch.common.io.stream.Streamable; import org.elasticsearch.common.io.stream.Writeable; import org.elasticsearch.common.transport.TransportAddress; @@ -56,9 +55,4 @@ public abstract class TransportMessage implements Streamable, Writeable { public void readFrom(StreamInput in) throws IOException { } - - @Override - public void writeTo(StreamOutput out) throws IOException { - - } } diff --git a/server/src/main/java/org/elasticsearch/transport/TransportRequest.java b/server/src/main/java/org/elasticsearch/transport/TransportRequest.java index d6072fc9d0a..866a34302c5 100644 --- a/server/src/main/java/org/elasticsearch/transport/TransportRequest.java +++ b/server/src/main/java/org/elasticsearch/transport/TransportRequest.java @@ -67,7 +67,6 @@ public abstract class TransportRequest extends TransportMessage implements TaskA @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); parentTaskId.writeTo(out); } } diff --git a/server/src/main/java/org/elasticsearch/transport/TransportResponse.java b/server/src/main/java/org/elasticsearch/transport/TransportResponse.java index d06d4967011..bab538f1370 100644 --- a/server/src/main/java/org/elasticsearch/transport/TransportResponse.java +++ b/server/src/main/java/org/elasticsearch/transport/TransportResponse.java @@ -20,6 +20,7 @@ package org.elasticsearch.transport; import org.elasticsearch.common.io.stream.StreamInput; +import org.elasticsearch.common.io.stream.StreamOutput; import java.io.IOException; @@ -47,5 +48,8 @@ public abstract class TransportResponse extends TransportMessage { public String toString() { return "Empty{}"; } + + @Override + public void writeTo(StreamOutput out) throws IOException {} } } diff --git a/server/src/main/java/org/elasticsearch/transport/TransportService.java b/server/src/main/java/org/elasticsearch/transport/TransportService.java index 429d0a81659..860bfc33b35 100644 --- a/server/src/main/java/org/elasticsearch/transport/TransportService.java +++ b/server/src/main/java/org/elasticsearch/transport/TransportService.java @@ -509,7 +509,6 @@ public class TransportService extends AbstractLifecycleComponent implements Tran @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); out.writeOptionalWriteable(discoveryNode); clusterName.writeTo(out); Version.writeVersion(version, out); diff --git a/server/src/test/java/org/elasticsearch/action/support/TransportActionFilterChainTests.java b/server/src/test/java/org/elasticsearch/action/support/TransportActionFilterChainTests.java index 96d057f50c4..0655ca4853c 100644 --- a/server/src/test/java/org/elasticsearch/action/support/TransportActionFilterChainTests.java +++ b/server/src/test/java/org/elasticsearch/action/support/TransportActionFilterChainTests.java @@ -25,6 +25,7 @@ import org.elasticsearch.action.ActionRequest; import org.elasticsearch.action.ActionRequestValidationException; import org.elasticsearch.action.ActionResponse; import org.elasticsearch.action.LatchedActionListener; +import org.elasticsearch.common.io.stream.StreamOutput; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.node.Node; import org.elasticsearch.tasks.Task; @@ -34,6 +35,7 @@ import org.elasticsearch.threadpool.ThreadPool; import org.junit.After; import org.junit.Before; +import java.io.IOException; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; @@ -261,6 +263,7 @@ public class TransportActionFilterChainTests extends ESTestCase { } private static class TestResponse extends ActionResponse { - + @Override + public void writeTo(StreamOutput out) throws IOException {} } } diff --git a/server/src/test/java/org/elasticsearch/action/support/master/TransportMasterNodeActionTests.java b/server/src/test/java/org/elasticsearch/action/support/master/TransportMasterNodeActionTests.java index a42791e69f6..56ad1035128 100644 --- a/server/src/test/java/org/elasticsearch/action/support/master/TransportMasterNodeActionTests.java +++ b/server/src/test/java/org/elasticsearch/action/support/master/TransportMasterNodeActionTests.java @@ -149,7 +149,6 @@ public class TransportMasterNodeActionTests extends ESTestCase { @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); out.writeLong(identity); } diff --git a/server/src/test/java/org/elasticsearch/action/support/single/instance/TransportInstanceSingleOperationActionTests.java b/server/src/test/java/org/elasticsearch/action/support/single/instance/TransportInstanceSingleOperationActionTests.java index e3a54340e28..affa827812b 100644 --- a/server/src/test/java/org/elasticsearch/action/support/single/instance/TransportInstanceSingleOperationActionTests.java +++ b/server/src/test/java/org/elasticsearch/action/support/single/instance/TransportInstanceSingleOperationActionTests.java @@ -36,6 +36,7 @@ import org.elasticsearch.cluster.node.DiscoveryNode; import org.elasticsearch.cluster.routing.ShardIterator; import org.elasticsearch.cluster.routing.ShardRoutingState; import org.elasticsearch.cluster.service.ClusterService; +import org.elasticsearch.common.io.stream.StreamOutput; import org.elasticsearch.common.unit.TimeValue; import org.elasticsearch.index.shard.ShardId; import org.elasticsearch.rest.RestStatus; @@ -51,6 +52,7 @@ import org.junit.AfterClass; import org.junit.Before; import org.junit.BeforeClass; +import java.io.IOException; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; @@ -82,6 +84,9 @@ public class TransportInstanceSingleOperationActionTests extends ESTestCase { public static class Response extends ActionResponse { public Response() { } + + @Override + public void writeTo(StreamOutput out) throws IOException {} } class TestTransportInstanceSingleOperationAction extends TransportInstanceSingleOperationAction { diff --git a/server/src/test/java/org/elasticsearch/client/transport/TransportClientNodesServiceTests.java b/server/src/test/java/org/elasticsearch/client/transport/TransportClientNodesServiceTests.java index 9e13dbaa89b..ef49f98d01c 100644 --- a/server/src/test/java/org/elasticsearch/client/transport/TransportClientNodesServiceTests.java +++ b/server/src/test/java/org/elasticsearch/client/transport/TransportClientNodesServiceTests.java @@ -33,6 +33,7 @@ import org.elasticsearch.cluster.node.DiscoveryNode; import org.elasticsearch.cluster.node.DiscoveryNodes; import org.elasticsearch.common.UUIDs; import org.elasticsearch.common.io.stream.StreamInput; +import org.elasticsearch.common.io.stream.StreamOutput; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.common.transport.TransportAddress; import org.elasticsearch.common.unit.TimeValue; @@ -437,5 +438,8 @@ public class TransportClientNodesServiceTests extends ESTestCase { private TestResponse() {} private TestResponse(StreamInput in) {} + + @Override + public void writeTo(StreamOutput out) throws IOException {} } } diff --git a/server/src/test/java/org/elasticsearch/indices/settings/InternalOrPrivateSettingsPlugin.java b/server/src/test/java/org/elasticsearch/indices/settings/InternalOrPrivateSettingsPlugin.java index d9ad4f2af4c..4f57989fcbf 100644 --- a/server/src/test/java/org/elasticsearch/indices/settings/InternalOrPrivateSettingsPlugin.java +++ b/server/src/test/java/org/elasticsearch/indices/settings/InternalOrPrivateSettingsPlugin.java @@ -111,7 +111,8 @@ public class InternalOrPrivateSettingsPlugin extends Plugin implements ActionPlu } static class Response extends ActionResponse { - + @Override + public void writeTo(StreamOutput out) throws IOException {} } @Override diff --git a/server/src/test/java/org/elasticsearch/transport/InboundHandlerTests.java b/server/src/test/java/org/elasticsearch/transport/InboundHandlerTests.java index 9c5d56315f6..01b09669fae 100644 --- a/server/src/test/java/org/elasticsearch/transport/InboundHandlerTests.java +++ b/server/src/test/java/org/elasticsearch/transport/InboundHandlerTests.java @@ -202,7 +202,6 @@ public class InboundHandlerTests extends ESTestCase { @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); out.writeString(value); } } diff --git a/server/src/test/java/org/elasticsearch/transport/TransportActionProxyTests.java b/server/src/test/java/org/elasticsearch/transport/TransportActionProxyTests.java index 7d52c12e473..96e1da6e831 100644 --- a/server/src/test/java/org/elasticsearch/transport/TransportActionProxyTests.java +++ b/server/src/test/java/org/elasticsearch/transport/TransportActionProxyTests.java @@ -241,7 +241,6 @@ public class TransportActionProxyTests extends ESTestCase { @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); out.writeString(targetNode); } } diff --git a/test/framework/src/main/java/org/elasticsearch/transport/AbstractSimpleTransportTestCase.java b/test/framework/src/main/java/org/elasticsearch/transport/AbstractSimpleTransportTestCase.java index 0483192a37a..af2052a1f96 100644 --- a/test/framework/src/main/java/org/elasticsearch/transport/AbstractSimpleTransportTestCase.java +++ b/test/framework/src/main/java/org/elasticsearch/transport/AbstractSimpleTransportTestCase.java @@ -1172,7 +1172,6 @@ public abstract class AbstractSimpleTransportTestCase extends ESTestCase { @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); out.writeString(message); } } @@ -1236,7 +1235,6 @@ public abstract class AbstractSimpleTransportTestCase extends ESTestCase { @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); out.writeInt(value1); } } @@ -1690,7 +1688,6 @@ public abstract class AbstractSimpleTransportTestCase extends ESTestCase { @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); out.writeOptionalString(info); } diff --git a/x-pack/plugin/ccr/src/main/java/org/elasticsearch/xpack/ccr/action/ShardChangesAction.java b/x-pack/plugin/ccr/src/main/java/org/elasticsearch/xpack/ccr/action/ShardChangesAction.java index 16c22b7ab20..e10ccb0f143 100644 --- a/x-pack/plugin/ccr/src/main/java/org/elasticsearch/xpack/ccr/action/ShardChangesAction.java +++ b/x-pack/plugin/ccr/src/main/java/org/elasticsearch/xpack/ccr/action/ShardChangesAction.java @@ -292,7 +292,6 @@ public class ShardChangesAction extends ActionType @Override public void writeTo(final StreamOutput out) throws IOException { - super.writeTo(out); out.writeVLong(mappingVersion); out.writeVLong(settingsVersion); if (out.getVersion().onOrAfter(Version.V_7_3_0)) { diff --git a/x-pack/plugin/ccr/src/main/java/org/elasticsearch/xpack/ccr/action/repositories/ClearCcrRestoreSessionAction.java b/x-pack/plugin/ccr/src/main/java/org/elasticsearch/xpack/ccr/action/repositories/ClearCcrRestoreSessionAction.java index df46535549b..c5c2237edfc 100644 --- a/x-pack/plugin/ccr/src/main/java/org/elasticsearch/xpack/ccr/action/repositories/ClearCcrRestoreSessionAction.java +++ b/x-pack/plugin/ccr/src/main/java/org/elasticsearch/xpack/ccr/action/repositories/ClearCcrRestoreSessionAction.java @@ -6,13 +6,14 @@ package org.elasticsearch.xpack.ccr.action.repositories; -import org.elasticsearch.action.ActionType; import org.elasticsearch.action.ActionListener; import org.elasticsearch.action.ActionResponse; +import org.elasticsearch.action.ActionType; import org.elasticsearch.action.support.ActionFilters; import org.elasticsearch.action.support.HandledTransportAction; import org.elasticsearch.common.inject.Inject; import org.elasticsearch.common.io.stream.StreamInput; +import org.elasticsearch.common.io.stream.StreamOutput; import org.elasticsearch.common.io.stream.Writeable; import org.elasticsearch.tasks.Task; import org.elasticsearch.threadpool.ThreadPool; @@ -20,6 +21,8 @@ import org.elasticsearch.transport.TransportActionProxy; import org.elasticsearch.transport.TransportService; import org.elasticsearch.xpack.ccr.repository.CcrRestoreSourceService; +import java.io.IOException; + public class ClearCcrRestoreSessionAction extends ActionType { public static final ClearCcrRestoreSessionAction INSTANCE = new ClearCcrRestoreSessionAction(); @@ -62,5 +65,8 @@ public class ClearCcrRestoreSessionAction extends ActionType value.writeTo(out1)); } diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/protocol/xpack/watcher/DeleteWatchResponse.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/protocol/xpack/watcher/DeleteWatchResponse.java index 39cd5e966fa..93c20abb883 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/protocol/xpack/watcher/DeleteWatchResponse.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/protocol/xpack/watcher/DeleteWatchResponse.java @@ -89,7 +89,6 @@ public class DeleteWatchResponse extends ActionResponse implements ToXContentObj @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); out.writeString(id); out.writeVLong(version); out.writeBoolean(found); diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/protocol/xpack/watcher/PutWatchResponse.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/protocol/xpack/watcher/PutWatchResponse.java index a7e96f1c0a8..27f2086d061 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/protocol/xpack/watcher/PutWatchResponse.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/protocol/xpack/watcher/PutWatchResponse.java @@ -106,7 +106,6 @@ public class PutWatchResponse extends ActionResponse implements ToXContentObject @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); out.writeString(id); out.writeVLong(version); out.writeZLong(seqNo); diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/action/AbstractGetResourcesResponse.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/action/AbstractGetResourcesResponse.java index 3ad388bf2e9..eb3cfa0b8f5 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/action/AbstractGetResourcesResponse.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/action/AbstractGetResourcesResponse.java @@ -47,7 +47,6 @@ public abstract class AbstractGetResourcesResponse { @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); autoFollowStats.writeTo(out); followStats.writeTo(out); } diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ccr/action/FollowInfoAction.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ccr/action/FollowInfoAction.java index 90c0dc3ce65..92cf64a52a0 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ccr/action/FollowInfoAction.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ccr/action/FollowInfoAction.java @@ -103,7 +103,6 @@ public class FollowInfoAction extends ActionType { @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); out.writeList(followInfos); } diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ccr/action/GetAutoFollowPatternAction.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ccr/action/GetAutoFollowPatternAction.java index 36ce0e3e2fe..96ae218c96d 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ccr/action/GetAutoFollowPatternAction.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ccr/action/GetAutoFollowPatternAction.java @@ -99,7 +99,6 @@ public class GetAutoFollowPatternAction extends ActionType value.writeTo(out1)); } diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ccr/action/PutFollowAction.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ccr/action/PutFollowAction.java index c698d06cd52..6f9c031a60d 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ccr/action/PutFollowAction.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ccr/action/PutFollowAction.java @@ -252,7 +252,6 @@ public final class PutFollowAction extends ActionType @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); out.writeBoolean(followIndexCreated); out.writeBoolean(followIndexShardsAcked); out.writeBoolean(indexFollowingStarted); diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/deprecation/DeprecationInfoAction.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/deprecation/DeprecationInfoAction.java index 42e6cc9c94c..897690891b0 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/deprecation/DeprecationInfoAction.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/deprecation/DeprecationInfoAction.java @@ -134,7 +134,6 @@ public class DeprecationInfoAction extends StreamableResponseActionType v.writeTo(o)); diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/indexlifecycle/action/RemoveIndexLifecyclePolicyAction.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/indexlifecycle/action/RemoveIndexLifecyclePolicyAction.java index 53be7b7f79a..42b45762722 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/indexlifecycle/action/RemoveIndexLifecyclePolicyAction.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/indexlifecycle/action/RemoveIndexLifecyclePolicyAction.java @@ -87,7 +87,6 @@ public class RemoveIndexLifecyclePolicyAction extends StreamableResponseActionTy @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); out.writeStringCollection(failedIndexes); } diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/action/DeleteExpiredDataAction.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/action/DeleteExpiredDataAction.java index bde9494ff7d..20153f88b3a 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/action/DeleteExpiredDataAction.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/action/DeleteExpiredDataAction.java @@ -71,7 +71,6 @@ public class DeleteExpiredDataAction extends StreamableResponseActionType value.writeTo(out1)); } diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/rollup/action/GetRollupIndexCapsAction.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/rollup/action/GetRollupIndexCapsAction.java index c0f45d4c6f3..512dd9616e6 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/rollup/action/GetRollupIndexCapsAction.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/rollup/action/GetRollupIndexCapsAction.java @@ -156,7 +156,6 @@ public class GetRollupIndexCapsAction extends StreamableResponseActionType value.writeTo(out1)); } diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/CreateApiKeyResponse.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/CreateApiKeyResponse.java index a774413c3c4..708afeb07e7 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/CreateApiKeyResponse.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/CreateApiKeyResponse.java @@ -119,7 +119,6 @@ public final class CreateApiKeyResponse extends ActionResponse implements ToXCon @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); out.writeString(name); out.writeString(id); byte[] bytes = null; diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/GetApiKeyResponse.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/GetApiKeyResponse.java index 97b8f380f69..d33e2c3e635 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/GetApiKeyResponse.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/GetApiKeyResponse.java @@ -64,7 +64,6 @@ public final class GetApiKeyResponse extends ActionResponse implements ToXConten @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); out.writeArray(foundApiKeysInfo); } diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/InvalidateApiKeyResponse.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/InvalidateApiKeyResponse.java index e9580c93d90..eeb9860d476 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/InvalidateApiKeyResponse.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/InvalidateApiKeyResponse.java @@ -109,7 +109,6 @@ public final class InvalidateApiKeyResponse extends ActionResponse implements To @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); out.writeStringCollection(invalidatedApiKeys); out.writeStringCollection(previouslyInvalidatedApiKeys); out.writeCollection(errors, StreamOutput::writeException); diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/oidc/OpenIdConnectAuthenticateResponse.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/oidc/OpenIdConnectAuthenticateResponse.java index 93b7c6b292a..8ceafab05cc 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/oidc/OpenIdConnectAuthenticateResponse.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/oidc/OpenIdConnectAuthenticateResponse.java @@ -56,7 +56,6 @@ public class OpenIdConnectAuthenticateResponse extends ActionResponse { @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); out.writeString(principal); out.writeString(accessTokenString); out.writeString(refreshTokenString); diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/oidc/OpenIdConnectLogoutResponse.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/oidc/OpenIdConnectLogoutResponse.java index e725701e01c..86958b9f269 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/oidc/OpenIdConnectLogoutResponse.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/oidc/OpenIdConnectLogoutResponse.java @@ -31,7 +31,6 @@ public final class OpenIdConnectLogoutResponse extends ActionResponse { @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); out.writeString(endSessionUrl); } diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/oidc/OpenIdConnectPrepareAuthenticationResponse.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/oidc/OpenIdConnectPrepareAuthenticationResponse.java index c8a70e65b81..48978a50f1e 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/oidc/OpenIdConnectPrepareAuthenticationResponse.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/oidc/OpenIdConnectPrepareAuthenticationResponse.java @@ -61,7 +61,6 @@ public class OpenIdConnectPrepareAuthenticationResponse extends ActionResponse i @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); out.writeString(authenticationRequestUrl); out.writeString(state); out.writeString(nonce); diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/privilege/DeletePrivilegesResponse.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/privilege/DeletePrivilegesResponse.java index 18efb2ac5fa..f5afe1b6064 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/privilege/DeletePrivilegesResponse.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/privilege/DeletePrivilegesResponse.java @@ -50,7 +50,6 @@ public final class DeletePrivilegesResponse extends ActionResponse implements To @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); out.writeCollection(found, StreamOutput::writeString); } diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/privilege/GetBuiltinPrivilegesResponse.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/privilege/GetBuiltinPrivilegesResponse.java index e09f2fc0b1a..5cc2536c839 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/privilege/GetBuiltinPrivilegesResponse.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/privilege/GetBuiltinPrivilegesResponse.java @@ -54,7 +54,6 @@ public final class GetBuiltinPrivilegesResponse extends ActionResponse { @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); out.writeStringArray(clusterPrivileges); out.writeStringArray(indexPrivileges); } diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/privilege/GetPrivilegesResponse.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/privilege/GetPrivilegesResponse.java index 07b1c5596de..5f9ae94ffd1 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/privilege/GetPrivilegesResponse.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/privilege/GetPrivilegesResponse.java @@ -45,7 +45,6 @@ public final class GetPrivilegesResponse extends ActionResponse { @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); out.writeArray(privileges); } diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/privilege/PutPrivilegesResponse.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/privilege/PutPrivilegesResponse.java index 0e1652af95b..541fa3d943e 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/privilege/PutPrivilegesResponse.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/privilege/PutPrivilegesResponse.java @@ -48,7 +48,6 @@ public final class PutPrivilegesResponse extends ActionResponse implements ToXCo @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); out.writeMap(created, StreamOutput::writeString, StreamOutput::writeStringCollection); } diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/role/DeleteRoleResponse.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/role/DeleteRoleResponse.java index 33314eb0869..54e5f1a111d 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/role/DeleteRoleResponse.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/role/DeleteRoleResponse.java @@ -44,7 +44,6 @@ public class DeleteRoleResponse extends ActionResponse implements ToXContentObje @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); out.writeBoolean(found); } diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/role/GetRolesResponse.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/role/GetRolesResponse.java index 27079eebcc3..5e2f89a88bb 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/role/GetRolesResponse.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/role/GetRolesResponse.java @@ -43,7 +43,6 @@ public class GetRolesResponse extends ActionResponse { @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); out.writeVInt(roles.length); for (RoleDescriptor role : roles) { role.writeTo(out); diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/role/PutRoleResponse.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/role/PutRoleResponse.java index 98115bfd366..76f83faf59d 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/role/PutRoleResponse.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/role/PutRoleResponse.java @@ -8,7 +8,6 @@ package org.elasticsearch.xpack.core.security.action.role; import org.elasticsearch.action.ActionResponse; import org.elasticsearch.common.io.stream.StreamInput; import org.elasticsearch.common.io.stream.StreamOutput; -import org.elasticsearch.common.xcontent.ToXContent.Params; import org.elasticsearch.common.xcontent.ToXContentObject; import org.elasticsearch.common.xcontent.XContentBuilder; @@ -41,7 +40,6 @@ public class PutRoleResponse extends ActionResponse implements ToXContentObject @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); out.writeBoolean(created); } diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/rolemapping/DeleteRoleMappingResponse.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/rolemapping/DeleteRoleMappingResponse.java index af470c6c821..2870ae7c24c 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/rolemapping/DeleteRoleMappingResponse.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/rolemapping/DeleteRoleMappingResponse.java @@ -5,14 +5,14 @@ */ package org.elasticsearch.xpack.core.security.action.rolemapping; -import java.io.IOException; - import org.elasticsearch.action.ActionResponse; import org.elasticsearch.common.io.stream.StreamInput; import org.elasticsearch.common.io.stream.StreamOutput; import org.elasticsearch.common.xcontent.ToXContentObject; import org.elasticsearch.common.xcontent.XContentBuilder; +import java.io.IOException; + /** * Response for a role-mapping being deleted from the * org.elasticsearch.xpack.security.authc.support.mapper.NativeRoleMappingStore @@ -52,7 +52,6 @@ public class DeleteRoleMappingResponse extends ActionResponse implements ToXCont @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); out.writeBoolean(found); } diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/rolemapping/GetRoleMappingsResponse.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/rolemapping/GetRoleMappingsResponse.java index 738dfa65aaa..7d43ff4fbad 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/rolemapping/GetRoleMappingsResponse.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/rolemapping/GetRoleMappingsResponse.java @@ -5,13 +5,13 @@ */ package org.elasticsearch.xpack.core.security.action.rolemapping; -import java.io.IOException; - import org.elasticsearch.action.ActionResponse; import org.elasticsearch.common.io.stream.StreamInput; import org.elasticsearch.common.io.stream.StreamOutput; import org.elasticsearch.xpack.core.security.authc.support.mapper.ExpressionRoleMapping; +import java.io.IOException; + /** * Response to {@link GetRoleMappingsAction get role-mappings API}. * @@ -45,7 +45,6 @@ public class GetRoleMappingsResponse extends ActionResponse { @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); out.writeVInt(mappings.length); for (ExpressionRoleMapping mapping : mappings) { mapping.writeTo(out); diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/rolemapping/PutRoleMappingResponse.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/rolemapping/PutRoleMappingResponse.java index eec74c6d61c..c3afc0a0d53 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/rolemapping/PutRoleMappingResponse.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/rolemapping/PutRoleMappingResponse.java @@ -8,7 +8,6 @@ package org.elasticsearch.xpack.core.security.action.rolemapping; import org.elasticsearch.action.ActionResponse; import org.elasticsearch.common.io.stream.StreamInput; import org.elasticsearch.common.io.stream.StreamOutput; -import org.elasticsearch.common.xcontent.ToXContent.Params; import org.elasticsearch.common.xcontent.ToXContentObject; import org.elasticsearch.common.xcontent.XContentBuilder; @@ -42,7 +41,6 @@ public class PutRoleMappingResponse extends ActionResponse implements ToXContent @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); out.writeBoolean(created); } diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/saml/SamlAuthenticateResponse.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/saml/SamlAuthenticateResponse.java index b6d7797f851..52619c7a794 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/saml/SamlAuthenticateResponse.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/saml/SamlAuthenticateResponse.java @@ -5,13 +5,13 @@ */ package org.elasticsearch.xpack.core.security.action.saml; -import java.io.IOException; - import org.elasticsearch.action.ActionResponse; import org.elasticsearch.common.io.stream.StreamInput; import org.elasticsearch.common.io.stream.StreamOutput; import org.elasticsearch.common.unit.TimeValue; +import java.io.IOException; + /** * The response from converting a SAML assertion into a security token. * Actually nothing SAML specific in this... @@ -51,7 +51,6 @@ public final class SamlAuthenticateResponse extends ActionResponse { @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); out.writeString(principal); out.writeString(tokenString); out.writeString(refreshToken); diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/saml/SamlInvalidateSessionResponse.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/saml/SamlInvalidateSessionResponse.java index 7b90071ec6c..f18631ad630 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/saml/SamlInvalidateSessionResponse.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/saml/SamlInvalidateSessionResponse.java @@ -5,12 +5,12 @@ */ package org.elasticsearch.xpack.core.security.action.saml; -import java.io.IOException; - import org.elasticsearch.action.ActionResponse; import org.elasticsearch.common.io.stream.StreamInput; import org.elasticsearch.common.io.stream.StreamOutput; +import java.io.IOException; + /** * Response to an IdP-initiated SAML {@code <LogoutRequest>} */ @@ -43,7 +43,6 @@ public final class SamlInvalidateSessionResponse extends ActionResponse { @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); out.writeString(realmName); out.writeInt(count); out.writeString(redirectUrl); diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/saml/SamlLogoutResponse.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/saml/SamlLogoutResponse.java index 2770b7925bd..95b1227c7d6 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/saml/SamlLogoutResponse.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/saml/SamlLogoutResponse.java @@ -5,12 +5,12 @@ */ package org.elasticsearch.xpack.core.security.action.saml; -import java.io.IOException; - import org.elasticsearch.action.ActionResponse; import org.elasticsearch.common.io.stream.StreamInput; import org.elasticsearch.common.io.stream.StreamOutput; +import java.io.IOException; + /** * Response containing a SAML {@code <LogoutRequest>} for the current user */ @@ -31,7 +31,6 @@ public final class SamlLogoutResponse extends ActionResponse { @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); out.writeString(redirectUrl); } diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/saml/SamlPrepareAuthenticationResponse.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/saml/SamlPrepareAuthenticationResponse.java index d9ff6f68c6b..3d25f31210f 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/saml/SamlPrepareAuthenticationResponse.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/saml/SamlPrepareAuthenticationResponse.java @@ -5,12 +5,12 @@ */ package org.elasticsearch.xpack.core.security.action.saml; -import java.io.IOException; - import org.elasticsearch.action.ActionResponse; import org.elasticsearch.common.io.stream.StreamInput; import org.elasticsearch.common.io.stream.StreamOutput; +import java.io.IOException; + /** * Response containing a SAML {@code <AuthnRequest>} for a specific realm. */ @@ -43,7 +43,6 @@ public final class SamlPrepareAuthenticationResponse extends ActionResponse { @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); out.writeString(redirectUrl); } diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/token/CreateTokenResponse.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/token/CreateTokenResponse.java index d27da7a3b83..beae08040b0 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/token/CreateTokenResponse.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/token/CreateTokenResponse.java @@ -62,7 +62,6 @@ public final class CreateTokenResponse extends ActionResponse implements ToXCont @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); out.writeString(tokenString); out.writeTimeValue(expiresIn); out.writeOptionalString(scope); diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/token/InvalidateTokenResponse.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/token/InvalidateTokenResponse.java index 7e25683a2a9..7326b61a4b2 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/token/InvalidateTokenResponse.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/token/InvalidateTokenResponse.java @@ -35,7 +35,6 @@ public final class InvalidateTokenResponse extends ActionResponse implements ToX @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); result.writeTo(out); } diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/user/AuthenticateResponse.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/user/AuthenticateResponse.java index 06a4df019c3..bdcc8e67686 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/user/AuthenticateResponse.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/user/AuthenticateResponse.java @@ -30,7 +30,6 @@ public class AuthenticateResponse extends ActionResponse { @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); if (out.getVersion().before(Version.V_6_6_0)) { User.writeTo(authentication.getUser(), out); } else { diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/user/ChangePasswordResponse.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/user/ChangePasswordResponse.java index 4a1c5c33a6d..20240d5be92 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/user/ChangePasswordResponse.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/user/ChangePasswordResponse.java @@ -6,8 +6,14 @@ package org.elasticsearch.xpack.core.security.action.user; import org.elasticsearch.action.ActionResponse; +import org.elasticsearch.common.io.stream.StreamOutput; + +import java.io.IOException; public class ChangePasswordResponse extends ActionResponse { public ChangePasswordResponse() {} + + @Override + public void writeTo(StreamOutput out) throws IOException {} } diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/user/DeleteUserResponse.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/user/DeleteUserResponse.java index 8b668a9b97b..2f2f3380023 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/user/DeleteUserResponse.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/user/DeleteUserResponse.java @@ -46,7 +46,6 @@ public class DeleteUserResponse extends ActionResponse implements ToXContentObje @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); out.writeBoolean(found); } diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/user/GetUserPrivilegesResponse.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/user/GetUserPrivilegesResponse.java index b6d84d766c3..86651e68a3e 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/user/GetUserPrivilegesResponse.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/user/GetUserPrivilegesResponse.java @@ -84,7 +84,6 @@ public final class GetUserPrivilegesResponse extends ActionResponse { @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); out.writeCollection(cluster, StreamOutput::writeString); out.writeCollection(conditionalCluster, ConditionalClusterPrivileges.WRITER); out.writeCollection(index); diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/user/GetUsersResponse.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/user/GetUsersResponse.java index 666b79cfe5d..ac3d63a551f 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/user/GetUsersResponse.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/user/GetUsersResponse.java @@ -52,7 +52,6 @@ public class GetUsersResponse extends ActionResponse { @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); out.writeVInt(users == null ? -1 : users.length); if (users != null) { for (User user : users) { diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/user/HasPrivilegesResponse.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/user/HasPrivilegesResponse.java index 74984556dc1..cdb8bdbdd0d 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/user/HasPrivilegesResponse.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/user/HasPrivilegesResponse.java @@ -128,7 +128,6 @@ public class HasPrivilegesResponse extends ActionResponse implements ToXContentO @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); out.writeBoolean(completeMatch); if (out.getVersion().onOrAfter(Version.V_6_6_0)) { out.writeMap(cluster, StreamOutput::writeString, StreamOutput::writeBoolean); diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/user/PutUserResponse.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/user/PutUserResponse.java index c8958251e16..f0cea14c90d 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/user/PutUserResponse.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/user/PutUserResponse.java @@ -35,7 +35,6 @@ public class PutUserResponse extends ActionResponse implements ToXContentObject @Override public void writeTo(StreamOutput out) throws IOException { - super.writeTo(out); out.writeBoolean(created); } diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/user/SetEnabledResponse.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/user/SetEnabledResponse.java index 72d1d16b82e..056305955dc 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/user/SetEnabledResponse.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/user/SetEnabledResponse.java @@ -6,9 +6,14 @@ package org.elasticsearch.xpack.core.security.action.user; import org.elasticsearch.action.ActionResponse; +import org.elasticsearch.common.io.stream.StreamOutput; + +import java.io.IOException; /** * Empty response for a {@link SetEnabledRequest} */ public class SetEnabledResponse extends ActionResponse { + @Override + public void writeTo(StreamOutput out) throws IOException {} } diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ssl/action/GetCertificateInfoAction.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ssl/action/GetCertificateInfoAction.java index ed2f35bae84..88ad11340d1 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ssl/action/GetCertificateInfoAction.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ssl/action/GetCertificateInfoAction.java @@ -70,7 +70,6 @@ public class GetCertificateInfoAction extends StreamableResponseActionType