From 8d0089c8d825b3b449b7941c6c3c0ce6b23332f5 Mon Sep 17 00:00:00 2001 From: javanna Date: Fri, 12 Feb 2016 16:31:35 +0100 Subject: [PATCH] Remove unused generics type from TransportMessage followup of #15776, the type is not needed anymore. --- .../java/org/elasticsearch/transport/TransportMessage.java | 5 +---- .../java/org/elasticsearch/transport/TransportRequest.java | 2 +- .../java/org/elasticsearch/transport/TransportResponse.java | 2 +- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/core/src/main/java/org/elasticsearch/transport/TransportMessage.java b/core/src/main/java/org/elasticsearch/transport/TransportMessage.java index 1434a6eaa73..fa21a51ba2d 100644 --- a/core/src/main/java/org/elasticsearch/transport/TransportMessage.java +++ b/core/src/main/java/org/elasticsearch/transport/TransportMessage.java @@ -25,11 +25,8 @@ import org.elasticsearch.common.io.stream.Streamable; import org.elasticsearch.common.transport.TransportAddress; import java.io.IOException; -import java.util.Collections; -import java.util.HashMap; -import java.util.Map; -public abstract class TransportMessage> implements Streamable { +public abstract class TransportMessage implements Streamable { private TransportAddress remoteAddress; diff --git a/core/src/main/java/org/elasticsearch/transport/TransportRequest.java b/core/src/main/java/org/elasticsearch/transport/TransportRequest.java index a367e288674..ba3601236c9 100644 --- a/core/src/main/java/org/elasticsearch/transport/TransportRequest.java +++ b/core/src/main/java/org/elasticsearch/transport/TransportRequest.java @@ -23,7 +23,7 @@ import org.elasticsearch.tasks.Task; /** */ -public abstract class TransportRequest extends TransportMessage { +public abstract class TransportRequest extends TransportMessage { public static class Empty extends TransportRequest { public static final Empty INSTANCE = new Empty(); diff --git a/core/src/main/java/org/elasticsearch/transport/TransportResponse.java b/core/src/main/java/org/elasticsearch/transport/TransportResponse.java index 28dcd12ca53..b778c6f213d 100644 --- a/core/src/main/java/org/elasticsearch/transport/TransportResponse.java +++ b/core/src/main/java/org/elasticsearch/transport/TransportResponse.java @@ -21,7 +21,7 @@ package org.elasticsearch.transport; /** */ -public abstract class TransportResponse extends TransportMessage { +public abstract class TransportResponse extends TransportMessage { public static class Empty extends TransportResponse { public static final Empty INSTANCE = new Empty();