Author: mbenson
Date: Wed Apr 9 16:18:52 2008
New Revision: 646592
URL: http://svn.apache.org/viewvc?rev=646592&view=rev
Log:
all other adapters' static methods have a specific, rather than a generic,
return type; consistency
Modified:
commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/adapter/IgnoreLeftFunction.java
commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/adapter/IgnoreRightFunction.java
Modified:
commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/adapter/IgnoreLeftFunction.java
URL:
http://svn.apache.org/viewvc/commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/adapter/IgnoreLeftFunction.java?rev=646592&r1=646591&r2=646592&view=diff
==============================================================================
---
commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/adapter/IgnoreLeftFunction.java
(original)
+++
commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/adapter/IgnoreLeftFunction.java
Wed Apr 9 16:18:52 2008
@@ -94,9 +94,9 @@
/**
* Adapt a UnaryFunction to the BinaryFunction interface.
* @param function to adapt
- * @return BinaryFunction
+ * @return IgnoreLeftFunction
*/
- public static BinaryFunction adapt(UnaryFunction function) {
+ public static IgnoreLeftFunction adapt(UnaryFunction function) {
return null == function ? null : new IgnoreLeftFunction(function);
}
Modified:
commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/adapter/IgnoreRightFunction.java
URL:
http://svn.apache.org/viewvc/commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/adapter/IgnoreRightFunction.java?rev=646592&r1=646591&r2=646592&view=diff
==============================================================================
---
commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/adapter/IgnoreRightFunction.java
(original)
+++
commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/adapter/IgnoreRightFunction.java
Wed Apr 9 16:18:52 2008
@@ -94,9 +94,9 @@
/**
* Adapt a UnaryFunction to the BinaryFunction interface.
* @param function UnaryFunction to adapt
- * @return IgnoreRightFunction BinaryFunction
+ * @return IgnoreRightFunction
*/
- public static BinaryFunction adapt(UnaryFunction function) {
+ public static IgnoreRightFunction adapt(UnaryFunction function) {
return null == function ? null : new IgnoreRightFunction(function);
}