You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by gb...@apache.org on 2010/04/22 01:57:03 UTC
svn commit: r936570 -
/pivot/trunk/core/src/org/apache/pivot/beans/BeanAdapter.java
Author: gbrown
Date: Wed Apr 21 23:57:02 2010
New Revision: 936570
URL: http://svn.apache.org/viewvc?rev=936570&view=rev
Log:
Fix minor issues introduced by recent changes to BeanAdapter.
Modified:
pivot/trunk/core/src/org/apache/pivot/beans/BeanAdapter.java
Modified: pivot/trunk/core/src/org/apache/pivot/beans/BeanAdapter.java
URL: http://svn.apache.org/viewvc/pivot/trunk/core/src/org/apache/pivot/beans/BeanAdapter.java?rev=936570&r1=936569&r2=936570&view=diff
==============================================================================
--- pivot/trunk/core/src/org/apache/pivot/beans/BeanAdapter.java (original)
+++ pivot/trunk/core/src/org/apache/pivot/beans/BeanAdapter.java Wed Apr 21 23:57:02 2010
@@ -610,7 +610,7 @@ public class BeanAdapter implements Map<
field = null;
}
} catch (NoSuchFieldException exception) {
- throw new RuntimeException(exception);
+ // No-op
}
return field;
@@ -636,14 +636,14 @@ public class BeanAdapter implements Map<
try {
getterMethod = beanClass.getMethod(GET_PREFIX + key, new Class<?>[] {});
} catch (NoSuchMethodException exception) {
- throw new RuntimeException(exception);
+ // No-op
}
if (getterMethod == null) {
try {
getterMethod = beanClass.getMethod(IS_PREFIX + key, new Class<?>[] {});
} catch (NoSuchMethodException exception) {
- throw new RuntimeException(exception);
+ // No-op
}
}
@@ -674,7 +674,7 @@ public class BeanAdapter implements Map<
try {
setterMethod = beanClass.getMethod(methodName, new Class<?>[] {valueType});
} catch (NoSuchMethodException exception) {
- throw new RuntimeException(exception);
+ // No-op
}
if (setterMethod == null) {
@@ -693,10 +693,10 @@ public class BeanAdapter implements Map<
try {
setterMethod = beanClass.getMethod(methodName, new Class<?>[] {primitiveValueType});
} catch (NoSuchMethodException exception) {
- throw new RuntimeException(exception);
+ // No-op
}
} catch (NoSuchFieldException exception) {
- throw new RuntimeException(exception);
+ // No-op
} catch (IllegalAccessException exception) {
throw new RuntimeException(exception);
}