Author: jm
Date: 2011-07-08 15:44:00 -0700 (Fri, 08 Jul 2011)
New Revision: 26124
Modified:
core3/cpath2-impl/trunk/src/main/java/org/cytoscape/cpath2/internal/cytoscape/BinarySifVisualStyleUtil.java
Log:
Removed unnecessary static modifiers
Fixed synchronized block
Modified:
core3/cpath2-impl/trunk/src/main/java/org/cytoscape/cpath2/internal/cytoscape/BinarySifVisualStyleUtil.java
===================================================================
---
core3/cpath2-impl/trunk/src/main/java/org/cytoscape/cpath2/internal/cytoscape/BinarySifVisualStyleUtil.java
2011-07-08 21:53:01 UTC (rev 26123)
+++
core3/cpath2-impl/trunk/src/main/java/org/cytoscape/cpath2/internal/cytoscape/BinarySifVisualStyleUtil.java
2011-07-08 22:44:00 UTC (rev 26124)
@@ -37,7 +37,7 @@
private final static String COMPLEX = "Complex";
private static final String INTERACTION = "interaction"; // TODO:
Double check this constant
- static VisualStyle binarySifStyle;
+ VisualStyle binarySifStyle;
private final VisualStyleFactory styleFactory;
private final VisualMappingManager mappingManager;
@@ -62,7 +62,7 @@
// * @return VisualStyle Object.
// */
public VisualStyle getVisualStyle() {
- synchronized (BinarySifVisualStyleUtil.class) {
+ synchronized (this) {
if (binarySifStyle == null) {
binarySifStyle = styleFactory
.getInstance(BINARY_SIF_VISUAL_STYLE);
--
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.