Author: ruschein
Date: 2010-08-13 14:55:24 -0700 (Fri, 13 Aug 2010)
New Revision: 21387
Modified:
core3/work-api/trunk/src/main/java/org/cytoscape/work/AbstractTunableInterceptor.java
Log:
Added another sanity check.
Modified:
core3/work-api/trunk/src/main/java/org/cytoscape/work/AbstractTunableInterceptor.java
===================================================================
---
core3/work-api/trunk/src/main/java/org/cytoscape/work/AbstractTunableInterceptor.java
2010-08-13 21:16:35 UTC (rev 21386)
+++
core3/work-api/trunk/src/main/java/org/cytoscape/work/AbstractTunableInterceptor.java
2010-08-13 21:55:24 UTC (rev 21387)
@@ -211,8 +211,12 @@
logger.error(method.getName() +
" annotated with @ProvidesGUI must return void!");
else if
(method.getParameterTypes().length != 0)
logger.error(method.getName() +
" annotated with @ProvidesGUI must take 0 arguments!");
- else
+ else {
+ if (!guiProviderMap.isEmpty())
+ logger.error("Classes
must have at most a single @ProvidesGUI annotated method but + "
+ +
method.getDeclaringClass().getName() + " has more than one!");
guiProviderMap.put(obj, method);
+ }
}
}
--
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.