branch develop updated (bab86b3 -> 616cce3)
This is an automated email from the git hooks/post-receive script. New change to branch develop in repository wao. See http://git.codelutin.com/wao.git from bab86b3 Fusion de la branche 'feature/6733' dans develop (testable-cl #6733) new 616cce3 Correction d'un bogue dans le calcul de mois ayant le plus de jour (on ne mettait pas à jour le max, donc on tombait toujours sur le dernier mois) (testable-cl #6392)) The 1 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "adds" were already present in the repository and have only been added to this reference. Detailed log of new commits: commit 616cce34c08c3d62770e36a79baf508b96faec56 Author: Brendan Le Ny <bleny@codelutin.com> Date: Tue Mar 3 10:25:01 2015 +0100 Correction d'un bogue dans le calcul de mois ayant le plus de jour (on ne mettait pas à jour le max, donc on tombait toujours sur le dernier mois) (testable-cl #6392)) Summary of changes: wao-persistence/src/main/java/fr/ifremer/wao/WaoUtils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@codelutin.com>.
This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository wao. See http://git.codelutin.com/wao.git commit 616cce34c08c3d62770e36a79baf508b96faec56 Author: Brendan Le Ny <bleny@codelutin.com> Date: Tue Mar 3 10:25:01 2015 +0100 Correction d'un bogue dans le calcul de mois ayant le plus de jour (on ne mettait pas à jour le max, donc on tombait toujours sur le dernier mois) (testable-cl #6392)) --- wao-persistence/src/main/java/fr/ifremer/wao/WaoUtils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wao-persistence/src/main/java/fr/ifremer/wao/WaoUtils.java b/wao-persistence/src/main/java/fr/ifremer/wao/WaoUtils.java index 61ba078..8f07aaf 100644 --- a/wao-persistence/src/main/java/fr/ifremer/wao/WaoUtils.java +++ b/wao-persistence/src/main/java/fr/ifremer/wao/WaoUtils.java @@ -283,10 +283,10 @@ public class WaoUtils { T keyWithHighestValue = null; int maxObservationDays = 0; for (Map.Entry<T, Integer> entry : map.entrySet()) { - T aKey = entry.getKey(); Integer aObservationDays = entry.getValue(); if (aObservationDays > maxObservationDays) { - keyWithHighestValue = aKey; + maxObservationDays = aObservationDays; + keyWithHighestValue = entry.getKey(); } } return keyWithHighestValue; -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@codelutin.com>.
participants (1)
-
codelutin.com scm