Author: david.lloyd(a)jboss.com
Date: 2009-10-16 18:48:44 -0400 (Fri, 16 Oct 2009)
New Revision: 5559
Modified:
remoting3/trunk/jboss-remoting/src/main/java/org/jboss/remoting3/ClientImpl.java
remoting3/trunk/jboss-remoting/src/main/java/org/jboss/remoting3/TypedRequest.java
Log:
Use "class" when talking about class objects; reserve "type" for type
parameters
Modified:
remoting3/trunk/jboss-remoting/src/main/java/org/jboss/remoting3/ClientImpl.java
===================================================================
---
remoting3/trunk/jboss-remoting/src/main/java/org/jboss/remoting3/ClientImpl.java 2009-10-16
22:24:34 UTC (rev 5558)
+++
remoting3/trunk/jboss-remoting/src/main/java/org/jboss/remoting3/ClientImpl.java 2009-10-16
22:48:44 UTC (rev 5559)
@@ -97,7 +97,7 @@
}
public <T extends O> T invoke(final TypedRequest<? extends I, T>
typedRequest) throws IOException, CancellationException {
- return invoke(requestClass.cast(typedRequest), typedRequest.getReplyType());
+ return invoke(requestClass.cast(typedRequest), typedRequest.getReplyClass());
}
public IoFuture<? extends O> send(final I request) throws IOException {
@@ -118,7 +118,7 @@
}
public <T extends O> IoFuture<? extends T> send(final TypedRequest<?
extends I, T> typedRequest) throws IOException {
- return send(requestClass.cast(typedRequest), typedRequest.getReplyType());
+ return send(requestClass.cast(typedRequest), typedRequest.getReplyClass());
}
/**
Modified:
remoting3/trunk/jboss-remoting/src/main/java/org/jboss/remoting3/TypedRequest.java
===================================================================
---
remoting3/trunk/jboss-remoting/src/main/java/org/jboss/remoting3/TypedRequest.java 2009-10-16
22:24:34 UTC (rev 5558)
+++
remoting3/trunk/jboss-remoting/src/main/java/org/jboss/remoting3/TypedRequest.java 2009-10-16
22:48:44 UTC (rev 5559)
@@ -33,9 +33,9 @@
public interface TypedRequest<I extends TypedRequest<I, O>, O> {
/**
- * Get the reply type for this request type.
+ * Get the reply type class for this request type.
*
* @return the reply type's class
*/
- Class<O> getReplyType();
+ Class<O> getReplyClass();
}
Show replies by date