Author: kono
Date: 2012-04-24 14:11:06 -0700 (Tue, 24 Apr 2012)
New Revision: 28973
Modified:
core3/api/trunk/work-api/src/main/java/org/cytoscape/work/AbstractTunableInterceptor.java
Log:
Minor warnings resolved.
Modified:
core3/api/trunk/work-api/src/main/java/org/cytoscape/work/AbstractTunableInterceptor.java
===================================================================
---
core3/api/trunk/work-api/src/main/java/org/cytoscape/work/AbstractTunableInterceptor.java
2012-04-24 21:03:53 UTC (rev 28972)
+++
core3/api/trunk/work-api/src/main/java/org/cytoscape/work/AbstractTunableInterceptor.java
2012-04-24 21:11:06 UTC (rev 28973)
@@ -181,20 +181,15 @@
return getterCandidate.getParameterTypes().length == 0;
}
- private Method findCompatibleSetter(final Object obj, final String
rootName, final Class getterReturnType) {
+ private Method findCompatibleSetter(final Object obj, final String
rootName, final Class<?> getterReturnType) {
Method ret;
try {
// will throw a variety of exceptions
ret = obj.getClass().getMethod("set" + rootName,
getterReturnType);
-
- // separate check
- if ( ret == null )
- throw new RuntimeException("No setter method
complement found for: get" + rootName + "()");
} catch (final Exception e) {
- throw new IllegalArgumentException("Can't find a setter
compatible with the get"
- + rootName + "()
getter!", e);
+ throw new IllegalArgumentException("Can't find a setter
compatible with the get" + rootName + "() getter!",
+ e);
}
-
return ret;
}
--
You received this message because you are subscribed to the Google Groups
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/cytoscape-cvs?hl=en.