Don't use a static JAXBContext because it has some serious thread contention when...
authorkruland2607 <kruland2607@180e2498-e6e9-4542-8430-84ac67f01cd8>
Thu, 23 Aug 2012 19:53:37 +0000 (19:53 +0000)
committerkruland2607 <kruland2607@180e2498-e6e9-4542-8430-84ac67f01cd8>
Thu, 23 Aug 2012 19:53:37 +0000 (19:53 +0000)
git-svn-id: https://openrocket.svn.sourceforge.net/svnroot/openrocket/trunk@992 180e2498-e6e9-4542-8430-84ac67f01cd8

core/src/net/sf/openrocket/preset/xml/OpenRocketComponentSaver.java

index 934d4be5e88f5ab41f1aaf7625ff5272a392b893..7117d930cf1b14301582307ca59a2789218468b2 100644 (file)
@@ -29,9 +29,9 @@ public class OpenRocketComponentSaver {
     /**
      * The JAXBContext.  JAXBContext is thread-safe.
      */
-    private static JAXBContext context = null;
+    private JAXBContext context = null;
 
-    static {
+    public OpenRocketComponentSaver() {
         try {
             context = JAXBContext.newInstance(OpenRocketComponentDTO.class);
         }