- Revision
- 1330
- Author
- rfscholte
- Date
- 2011-09-21 14:56:22 -0500 (Wed, 21 Sep 2011)
Log Message
JavaMethod.getReturnType() and JavaMethod.getGenericReturnType() return JavaClass instead of Type
Modified Paths
Diff
Modified: trunk/qdox/src/main/java/com/thoughtworks/qdox/model/DefaultJavaMethod.java (1329 => 1330)
--- trunk/qdox/src/main/java/com/thoughtworks/qdox/model/DefaultJavaMethod.java 2011-09-10 22:24:46 UTC (rev 1329) +++ trunk/qdox/src/main/java/com/thoughtworks/qdox/model/DefaultJavaMethod.java 2011-09-21 19:56:22 UTC (rev 1330) @@ -378,7 +378,7 @@ /* (non-Javadoc) * @see com.thoughtworks.qdox.model.JavaMethod#getGenericReturnType() */ - public Type getGenericReturnType() + public JavaClass getGenericReturnType() { return returns; } @@ -386,7 +386,7 @@ /* (non-Javadoc) * @see com.thoughtworks.qdox.model.JavaMethod#getReturnType() */ - public Type getReturnType() { + public JavaClass getReturnType() { return getReturnType( false ); }
Modified: trunk/qdox/src/main/java/com/thoughtworks/qdox/model/JavaMethod.java (1329 => 1330)
--- trunk/qdox/src/main/java/com/thoughtworks/qdox/model/JavaMethod.java 2011-09-10 22:24:46 UTC (rev 1329) +++ trunk/qdox/src/main/java/com/thoughtworks/qdox/model/JavaMethod.java 2011-09-21 19:56:22 UTC (rev 1330) @@ -135,7 +135,7 @@ * @return the generic return type * @since 1.12 */ - Type getGenericReturnType(); + JavaClass getGenericReturnType(); /** * Equivalent of java.lang.reflect.Method.getReturnType() @@ -143,7 +143,7 @@ * @return the return type * @since 1.12 */ - Type getReturnType(); + JavaClass getReturnType(); /** * If a class inherits this method from a generic class or interface, you can use this method to get the resolved return type
Modified: trunk/qdox/src/main/java/com/thoughtworks/qdox/model/JavaMethodDelegate.java (1329 => 1330)
--- trunk/qdox/src/main/java/com/thoughtworks/qdox/model/JavaMethodDelegate.java 2011-09-10 22:24:46 UTC (rev 1329) +++ trunk/qdox/src/main/java/com/thoughtworks/qdox/model/JavaMethodDelegate.java 2011-09-21 19:56:22 UTC (rev 1330) @@ -116,7 +116,7 @@ return originalMethod.getExceptions(); } - public Type getGenericReturnType() + public JavaClass getGenericReturnType() { return originalMethod.getGenericReturnType(); }
To unsubscribe from this list please visit:
