commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jcar...@apache.org
Subject svn commit: r278902 - in /jakarta/commons/sandbox/proxy/trunk/src: java/org/apache/commons/proxy/handler/NullInvocationHandler.java test/org/apache/commons/proxy/handler/TestNullInvocationHandler.java
Date Tue, 06 Sep 2005 02:56:58 GMT
Author: jcarman
Date: Mon Sep  5 19:56:55 2005
New Revision: 278902

URL: http://svn.apache.org/viewcvs?rev=278902&view=rev
Log:
Added support for boolean values.

Modified:
    jakarta/commons/sandbox/proxy/trunk/src/java/org/apache/commons/proxy/handler/NullInvocationHandler.java
    jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/handler/TestNullInvocationHandler.java

Modified: jakarta/commons/sandbox/proxy/trunk/src/java/org/apache/commons/proxy/handler/NullInvocationHandler.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/proxy/trunk/src/java/org/apache/commons/proxy/handler/NullInvocationHandler.java?rev=278902&r1=278901&r2=278902&view=diff
==============================================================================
--- jakarta/commons/sandbox/proxy/trunk/src/java/org/apache/commons/proxy/handler/NullInvocationHandler.java
(original)
+++ jakarta/commons/sandbox/proxy/trunk/src/java/org/apache/commons/proxy/handler/NullInvocationHandler.java
Mon Sep  5 19:56:55 2005
@@ -40,6 +40,7 @@
         primitiveValueMap.put( Float.TYPE, new Float( 0.0f ) );
         primitiveValueMap.put( Double.TYPE, new Double( 0.0 ) );
         primitiveValueMap.put( Character.TYPE, new Character( ( char )0 ) );
+        primitiveValueMap.put( Boolean.TYPE, Boolean.FALSE );
     }
 //----------------------------------------------------------------------------------------------------------------------
 // InvocationHandler Implementation

Modified: jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/handler/TestNullInvocationHandler.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/handler/TestNullInvocationHandler.java?rev=278902&r1=278901&r2=278902&view=diff
==============================================================================
--- jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/handler/TestNullInvocationHandler.java
(original)
+++ jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/handler/TestNullInvocationHandler.java
Mon Sep  5 19:56:55 2005
@@ -31,6 +31,7 @@
         assertEquals( ( char )0, tester.charMethod() );
         assertEquals( 0.0f, tester.floatMethod() );
         assertEquals( 0.0, tester.doubleMethod() );
+        assertFalse( tester.booleanMethod() );
         assertNull( tester.stringMethod() );
     }
 
@@ -44,5 +45,6 @@
         public double doubleMethod();
         public float floatMethod();
         public String stringMethod();
+        public boolean booleanMethod();
     }
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message