Browse files

Fixed a concurrency error, caused by the use of a static field which …

…was not supposed to be static, as the classes are instantiated just to allow customization

Signed-off-by: Rajarshi  Guha <rajarshi.guha@gmail.com>
  • Loading branch information...
1 parent 3ea9180 commit 9f54afcb976372e75634c766fa3df5e82a97afb5 @egonw egonw committed with rajarshi Mar 11, 2011
View
2 src/main/org/openscience/cdk/io/CMLWriter.java
@@ -124,7 +124,7 @@
private LoggingTool logger;
- private static List<ICMLCustomizer> customizers = null;
+ private List<ICMLCustomizer> customizers = null;
/**
* Constructs a new CMLWriter class. Output will be stored in the Writer
View
2 src/main/org/openscience/cdk/libio/cml/Convertor.java
@@ -99,7 +99,7 @@
private LoggingTool logger;
private final static String CUSTOMIZERS_LIST = "libio-cml-customizers.set";
- private static Map<String, ICMLCustomizer> customizers = null;
+ private Map<String, ICMLCustomizer> customizers = null;
private boolean useCMLIDs;
/** specify if the IMolecule object need to put identify or reference definition*/

0 comments on commit 9f54afc

Please sign in to comment.