[vlma-devel] commit: Revert " Ensure a correct value for transient fields of deserialized objects." ( Adrien Grand )

git version control git at videolan.org
Tue Apr 14 22:49:47 CEST 2009


vlma | branch: master | Adrien Grand <jpountz at videolan.org> | Tue Apr 14 22:38:30 2009 +0200| [d6e60ed9c4eaaaa1859e021d51d442078e703e42] | committer: Adrien Grand 

Revert "Ensure a correct value for transient fields of deserialized objects."

This reverts commit f982e8379486a0a50acdccad51d79f52ad586376. XStream was not
happy with this commit.

> http://git.videolan.org/gitweb.cgi/vlma.git/?a=commit;h=d6e60ed9c4eaaaa1859e021d51d442078e703e42
---

 .../main/java/org/videolan/vlma/model/Adapter.java |    9 ---------
 1 files changed, 0 insertions(+), 9 deletions(-)

diff --git a/vlma-api/src/main/java/org/videolan/vlma/model/Adapter.java b/vlma-api/src/main/java/org/videolan/vlma/model/Adapter.java
index 7f42840..647d209 100644
--- a/vlma-api/src/main/java/org/videolan/vlma/model/Adapter.java
+++ b/vlma-api/src/main/java/org/videolan/vlma/model/Adapter.java
@@ -20,8 +20,6 @@
 
 package org.videolan.vlma.model;
 
-import java.io.IOException;
-import java.io.ObjectInputStream;
 import java.io.Serializable;
 
 /**
@@ -210,11 +208,4 @@ public abstract class Adapter implements Serializable {
         return name.hashCode() + server.hashCode();
     }
 
-    private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
-        in.defaultReadObject();
-        // Since score is transient, ensure the default value that
-        // will be used during deserialization is 0.
-        this.score = 0;
-    }
-
 }



More information about the vlma-devel mailing list