[vlma-devel] commit: Do not call getSatellite and setSatellite in the same instruction. (Adrien Grand )

git version control git at videolan.org
Sat Sep 20 23:17:53 CEST 2008


vlma | branch: master | Adrien Grand <jpountz at videolan.org> | Sat Sep 20 23:13:38 2008 +0200| [787e4b21bab5dd7561f18e38635d933025b3c0d1] | committer: Adrien Grand 

Do not call getSatellite and setSatellite in the same instruction.

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

 .../java/org/videolan/vlma/dao/VLMaDaoImpl.java    |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/vlma-core/src/main/java/org/videolan/vlma/dao/VLMaDaoImpl.java b/vlma-core/src/main/java/org/videolan/vlma/dao/VLMaDaoImpl.java
index 6b132f1..5777172 100644
--- a/vlma-core/src/main/java/org/videolan/vlma/dao/VLMaDaoImpl.java
+++ b/vlma-core/src/main/java/org/videolan/vlma/dao/VLMaDaoImpl.java
@@ -301,7 +301,8 @@ public class VLMaDaoImpl implements VLMaDao {
             if (servers.containsKey(id)) {
                 for (Adapter adapter : server.getAdapters()) {
                     if (adapter instanceof DVBSAdapter) {
-                        ((DVBSAdapter) adapter).setSatellite(getSatellite(((DVBSAdapter) adapter).getSatellite().getId()));
+                        int satelliteId = ((DVBSAdapter) adapter).getSatellite().getId();
+                        ((DVBSAdapter) adapter).setSatellite(getSatellite(satelliteId));
                     }
                 }
                 servers.put(id, server);



More information about the vlma-devel mailing list