Author: ruschein
Date: 2011-01-21 11:33:37 -0800 (Fri, 21 Jan 2011)
New Revision: 23544
Modified:
core3/model-impl/trunk/impl/src/main/java/org/cytoscape/model/internal/CyTableImpl.java
Log:
Fixed a synchronisation problem.
Modified:
core3/model-impl/trunk/impl/src/main/java/org/cytoscape/model/internal/CyTableImpl.java
===================================================================
---
core3/model-impl/trunk/impl/src/main/java/org/cytoscape/model/internal/CyTableImpl.java
2011-01-21 19:00:07 UTC (rev 23543)
+++
core3/model-impl/trunk/impl/src/main/java/org/cytoscape/model/internal/CyTableImpl.java
2011-01-21 19:33:37 UTC (rev 23544)
@@ -428,14 +428,19 @@
}
@Override
- synchronized public CyRow getRow(final Object key) {
+ public CyRow getRow(final Object key) {
checkKey(key);
- CyRow row = rows.get(key);
- if (row != null)
- return row;
- row = new InternalRow(key, this);
- rows.put(key, row);
+ CyRow row;
+ synchronized(this) {
+ row = rows.get(key);
+ if (row != null)
+ return row;
+
+ row = new InternalRow(key, this);
+ rows.put(key, row);
+ }
+
eventHelper.getMicroListener(RowCreatedMicroListener.class,
this).handleRowCreated(key);
return row;
}
--
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.