[vlma-devel] commit: Don't expose internal representation. (Adrien Grand )
git version control
git at videolan.org
Tue Mar 3 04:45:27 CET 2009
vlma | branch: master | Adrien Grand <jpountz at videolan.org> | Sun Mar 1 19:34:17 2009 +0100| [72b77953fb7ab1b64ef13333225e64f97b27873a] | committer: Adrien Grand
Don't expose internal representation.
> http://git.videolan.org/gitweb.cgi/vlma.git/?a=commit;h=72b77953fb7ab1b64ef13333225e64f97b27873a
---
.../main/java/org/videolan/vlma/model/Program.java | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/vlma-api/src/main/java/org/videolan/vlma/model/Program.java b/vlma-api/src/main/java/org/videolan/vlma/model/Program.java
index d0d2486..6060685 100644
--- a/vlma-api/src/main/java/org/videolan/vlma/model/Program.java
+++ b/vlma-api/src/main/java/org/videolan/vlma/model/Program.java
@@ -155,7 +155,7 @@ public final class Program implements Serializable {
* @return the start time
*/
public Date getLiveStart() {
- return liveStart;
+ return new Date(liveStart.getTime());
}
/**
@@ -331,7 +331,7 @@ public final class Program implements Serializable {
* the start time to set
*/
public void setLiveStart(Date liveStart) {
- this.liveStart = liveStart;
+ this.liveStart = new Date(liveStart.getTime());
}
/**
More information about the vlma-devel
mailing list