[galaxy-dev] [2057] trunk/core/src/main/java/org/mule/galaxy/impl/jcr/CollectionPersister.java: Avoid nasty NotSerializableExceptions, they're super annoying.

View: New views
1 Messages — Rating Filter:   Alert me  

[galaxy-dev] [2057] trunk/core/src/main/java/org/mule/galaxy/impl/jcr/CollectionPersister.java: Avoid nasty NotSerializableExceptions, they're super annoying.

by dandiep-2 :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
[2057] trunk/core/src/main/java/org/mule/galaxy/impl/jcr/CollectionPersister.java: Avoid nasty NotSerializableExceptions, they're super annoying.
Revision
2057
Author
dandiep
Date
2009-10-30 09:33:32 -0500 (Fri, 30 Oct 2009)

Log Message

Avoid nasty NotSerializableExceptions, they're super annoying.

Modified Paths

Diff

Modified: trunk/core/src/main/java/org/mule/galaxy/impl/jcr/CollectionPersister.java (2056 => 2057)

--- trunk/core/src/main/java/org/mule/galaxy/impl/jcr/CollectionPersister.java	2009-10-29 21:40:25 UTC (rev 2056)
+++ trunk/core/src/main/java/org/mule/galaxy/impl/jcr/CollectionPersister.java	2009-10-30 14:33:32 UTC (rev 2057)
@@ -118,14 +118,14 @@
         }
     }
     
-    public class LazySet extends HashSet {
+    public static class LazySet extends HashSet {
 
-        private final Node n;
-        private final FieldDescriptor fd;
-        private final Session session;
-        private final String parentField;
-        private final CollectionPersister persister;
-        private boolean initialized;
+        private transient  Node n;
+        private transient FieldDescriptor fd;
+        private transient Session session;
+        private transient String parentField;
+        private transient CollectionPersister persister;
+        private transient boolean initialized;
 
         public LazySet(CollectionPersister persister, 
                        Node n, 
@@ -250,14 +250,14 @@
         
     }
     
-    public class LazyList extends ArrayList {
+    public static class LazyList extends ArrayList {
         
-        private final Node n;
-        private final FieldDescriptor fd;
-        private final Session session;
-        private final String parentField;
-        private final CollectionPersister persister;
-        private boolean initialized;
+        private transient Node n;
+        private transient FieldDescriptor fd;
+        private transient Session session;
+        private transient String parentField;
+        private transient CollectionPersister persister;
+        private transient boolean initialized;
 
         public LazyList(CollectionPersister persister,
                         Node n, 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "MuleForge Dev" group.
To post to this group, send email to muleforgedev@...
To unsubscribe from this group, send email to muleforgedev+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/muleforgedev?hl=en
-~----------~----~----~----~------~----~------~--~---
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://admin.muleforge.org/manage_email