commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r666170 - /commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/adapter/IgnoreRightFunction.java
Date Tue, 10 Jun 2008 15:53:46 GMT
Author: mbenson
Date: Tue Jun 10 08:53:45 2008
New Revision: 666170

URL: http://svn.apache.org/viewvc?rev=666170&view=rev
Log:
throw IllegalArgumentException on null constructor arg

Modified:
    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/IgnoreRightFunction.java
URL: http://svn.apache.org/viewvc/commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/adapter/IgnoreRightFunction.java?rev=666170&r1=666169&r2=666170&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
Tue Jun 10 08:53:45 2008
@@ -47,6 +47,9 @@
      * @param function UnaryFunction to wrap
      */
     public IgnoreRightFunction(UnaryFunction<? super L, ? extends T> function) {
+        if (function == null) {
+            throw new IllegalArgumentException("UnaryFunction argument was null");
+        }
         this.function = function;
     }
 



Mime
View raw message