commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r666177 - in /commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/core/composite: TransposedFunction.java TransposedPredicate.java
Date Tue, 10 Jun 2008 16:08:21 GMT
Author: mbenson
Date: Tue Jun 10 09:08:20 2008
New Revision: 666177

URL: http://svn.apache.org/viewvc?rev=666177&view=rev
Log:
cleanup

Modified:
    commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/core/composite/TransposedFunction.java
    commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/core/composite/TransposedPredicate.java

Modified: commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/core/composite/TransposedFunction.java
URL: http://svn.apache.org/viewvc/commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/core/composite/TransposedFunction.java?rev=666177&r1=666176&r2=666177&view=diff
==============================================================================
--- commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/core/composite/TransposedFunction.java
(original)
+++ commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/core/composite/TransposedFunction.java
Tue Jun 10 09:08:20 2008
@@ -42,19 +42,19 @@
 public class TransposedFunction<L, R, T> implements BinaryFunction<L, R, T>,
Serializable {
     // attributes
     // ------------------------------------------------------------------------
-    private BinaryFunction<? super R, ? super L, ? extends T> function = null;
+    private BinaryFunction<? super R, ? super L, ? extends T> function;
 
     // constructor
     // ------------------------------------------------------------------------
     /**
      * Create a new TransposedFunction.
-     * @param f BinaryFunction to transpose.
+     * @param function BinaryFunction to transpose.
      */
-    public TransposedFunction(BinaryFunction<? super R, ? super L, ? extends T> f)
{
-        if (f == null) {
+    public TransposedFunction(BinaryFunction<? super R, ? super L, ? extends T> function)
{
+        if (function == null) {
             throw new IllegalArgumentException("BinaryFunction argument was null");
         }
-        function = f;
+        this.function = function;
     }
 
     // functor interface

Modified: commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/core/composite/TransposedPredicate.java
URL: http://svn.apache.org/viewvc/commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/core/composite/TransposedPredicate.java?rev=666177&r1=666176&r2=666177&view=diff
==============================================================================
--- commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/core/composite/TransposedPredicate.java
(original)
+++ commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/core/composite/TransposedPredicate.java
Tue Jun 10 09:08:20 2008
@@ -42,19 +42,19 @@
 public class TransposedPredicate<L, R> implements BinaryPredicate<L, R>, Serializable
{
     // attributes
     // ------------------------------------------------------------------------
-    private BinaryPredicate<? super R, ? super L> predicate = null;
+    private BinaryPredicate<? super R, ? super L> predicate;
 
     // constructor
     // ------------------------------------------------------------------------
     /**
      * Create a new TransposedPredicate.
-     * @param p the BinaryPredicate to transpose
+     * @param predicate the BinaryPredicate to transpose
      */
-    public TransposedPredicate(BinaryPredicate<? super R, ? super L> p) {
-        if (p == null) {
+    public TransposedPredicate(BinaryPredicate<? super R, ? super L> predicate) {
+        if (predicate == null) {
             throw new IllegalArgumentException("BinaryPredicate argument must not be null");
         }
-        predicate = p;
+        this.predicate = predicate;
     }
 
     // functor interface



Mime
View raw message