harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ton...@apache.org
Subject svn commit: r557861 - in /harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock: FakeFox01BeanInfo.java MockBean4StaticField.java
Date Fri, 20 Jul 2007 03:38:53 GMT
Author: tonywu
Date: Thu Jul 19 20:38:52 2007
New Revision: 557861

URL: http://svn.apache.org/viewvc?view=rev&rev=557861
Log:
minor modification, make the test pass on RI

Modified:
    harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/FakeFox01BeanInfo.java
    harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/MockBean4StaticField.java

Modified: harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/FakeFox01BeanInfo.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/FakeFox01BeanInfo.java?view=diff&rev=557861&r1=557860&r2=557861
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/FakeFox01BeanInfo.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/FakeFox01BeanInfo.java
Thu Jul 19 20:38:52 2007
@@ -58,7 +58,7 @@
         getDesc.setDisplayName(getDesc.getDisplayName() + suffix);
         MethodDescriptor setDesc = new MethodDescriptor(set);
         setDesc.setDisplayName(setDesc.getDisplayName() + suffix);
-        return new MethodDescriptor[] { getDesc, setDesc };
+        return new MethodDescriptor[] { setDesc, getDesc };
     }
 
     @Override

Modified: harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/MockBean4StaticField.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/MockBean4StaticField.java?view=diff&rev=557861&r1=557860&r2=557861
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/MockBean4StaticField.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/MockBean4StaticField.java
Thu Jul 19 20:38:52 2007
@@ -23,6 +23,7 @@
 
     @Override
     public boolean equals(Object o) {
+        if(!(o instanceof MockBean4StaticField))return false;
         return (o.getClass().equals(this.getClass()) && this.v == ((MockBean4StaticField)
o).v);
     }
 



Mime
View raw message