Revision: 17626
          http://sourceforge.net/p/gate/code/17626
Author:   markagreenwood
Date:     2014-03-11 13:17:32 +0000 (Tue, 11 Mar 2014)
Log Message:
-----------
upgraded to move away from the deprecated reflection provider and to use the 
new replacement instead

Modified Paths:
--------------
    gate/trunk/src/main/gate/util/persistence/PersistenceManager.java

Modified: gate/trunk/src/main/gate/util/persistence/PersistenceManager.java
===================================================================
--- gate/trunk/src/main/gate/util/persistence/PersistenceManager.java   
2014-03-11 12:36:49 UTC (rev 17625)
+++ gate/trunk/src/main/gate/util/persistence/PersistenceManager.java   
2014-03-11 13:17:32 UTC (rev 17626)
@@ -70,7 +70,7 @@
 
 import com.thoughtworks.xstream.XStream;
 import com.thoughtworks.xstream.converters.reflection.FieldDictionary;
-import com.thoughtworks.xstream.converters.reflection.Sun14ReflectionProvider;
+import 
com.thoughtworks.xstream.converters.reflection.SunUnsafeReflectionProvider;
 import com.thoughtworks.xstream.converters.reflection.XStream12FieldKeySorter;
 import com.thoughtworks.xstream.io.HierarchicalStreamReader;
 import com.thoughtworks.xstream.io.HierarchicalStreamWriter;
@@ -718,7 +718,7 @@
         // Just create the xstream and the filewriter that will later be
         // used to serialize objects.
         xstream = new XStream(
-          new Sun14ReflectionProvider(new FieldDictionary(new 
XStream12FieldKeySorter())),
+          new SunUnsafeReflectionProvider(new FieldDictionary(new 
XStream12FieldKeySorter())),
           new StaxDriver(new XStream11NameCoder())) {
           @Override
           protected boolean useXStream11XmlFriendlyMapper() {

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to